saving dictionaries

Andreas Jung andreas at andreas-jung.com
Fri Dec 22 04:11:47 EST 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