Newby: Dictionaries as file objects?
netvegetable
deathtospam43423 at altavista.com
Tue Jun 11 13:47:37 EDT 2002
d_blade8 at hotmail.com (Lemniscate) wrote in
news:7396d2b2.0206101224.61005b7f at posting.google.com:
> I agree with David. However, depending on exactly you want to be
> doing (and be able to do), you may want to look into the dbm modules
> (such as dbm, dbhash, etc.). These are, surprise, database modules
> but they allow for the storage of dictionary items.....
Damn! dbm doesn't appear to be available for windows. And dhash, doesn't
seem to allow me to store a dictionary as a value.
Any other suggestions?
> ......Now, pickle,
> shelve, and the like are perhaps the best things for storing Python
> objects (let's say a user-created object that contains mixed types)
> but the dbm modules have their uses too, based on EXACTLY what you
> want to do. Anyway, have fun.
>
> Lem
>
--
netvegetable at excite.com
More information about the Python-list
mailing list