shelve
Skip Montanaro
skip at mojam.com
Tue Dec 21 11:59:39 EST 1999
Gerrit> Skip Montanaro wrote:
>> for k in db.keys():
>> print db[k]
Gerrit> What about:
Gerrit> for k in db.values():
Gerrit> print k
Well, yeah, but shelves can get big. Grabbing the list of keys is likely to
be a heck of a lot smaller than smushing the entire db file into a list.
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
847-971-7098 | Python: Programming the way Guido indented...
More information about the Python-list
mailing list