saving dictionaries

Andreas Jung andreas at andreas-jung.com
Fri Dec 22 10:11:47 CET 2000


On Fri, Dec 22, 2000 at 08:20:39AM +0100, QdlatY wrote:
> Hello!
> 
> How to easily save and load contents of dictionaries (2 elements + key)
> to file?

Take a look at the pickle/cPickle module. It allows you to serialize nearly
any Python object. The modules documentation allows contains examples.

Andreas 




More information about the Python-list mailing list