save a dictionary in a file

Batista, Facundo FBatista at uniFON.com.ar
Tue Nov 16 07:34:11 EST 2004


[Leif K-Brooks]

#- 
#- Mariano Draghi wrote:
#- > class PersistentDict(dict):
#- >     '''Persistent dictionary.
#- > 
#- >     It's a dictionary that saves and loads its data to a file.
#- >     '''
#- 
#- Sounds pretty similar to shelve 
#- (http://python.org/doc/lib/module-shelve.html) to me. Have you 
#- considered using it instead?

We actually didn't know about it, and reinvented the wheel, :(

Mariano, we need to use shelve there, :p

.	Facundo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041116/dcd7adb9/attachment.html>


More information about the Python-list mailing list