Re: Integer keys in shelve

2006-03-14 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I want to use shelve to store lists which are indexed by an integer > key. The keys are not concurrent or anything, they are just defined as > integer values. However, shelve complains that I cannot have integer > keys. Here's the error: > >>> d[1] > Traceback (most rece

Integer keys in shelve

2006-03-14 Thread josegomez
Hi! I want to use shelve to store lists which are indexed by an integer key. The keys are not concurrent or anything, they are just defined as integer values. However, shelve complains that I cannot have integer keys. Here's the error: >>> d[1] Traceback (most recent call last): File "", line 1,