Loading a Python collection from an text-file
Magnus Lycka
lycka at carmen.se
Fri Jan 27 07:41:52 EST 2006
More information about the Python-list mailing list
Fri Jan 27 07:41:52 EST 2006
- Previous message (by thread): Loading a Python collection from an text-file
- Next message (by thread): Loading a Python collection from an text-file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ido Yehieli wrote: > perhapse consider using the pickle module? > http://docs.python.org/lib/module-pickle.html User editable? We should be kind to our users! >>> d = {'peter':14, 'paul':23} >>> pickle.dumps(d) "(dp0\nS'paul'\np1\nI23\nsS'peter'\np2\nI14\ns."
- Previous message (by thread): Loading a Python collection from an text-file
- Next message (by thread): Loading a Python collection from an text-file
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list