serialize dictionary type

Dave Kuhlman dkuhlman at
Tue Aug 13 19:48:54 EDT 2002

Mark McEahern wrote:

>> this may be a stupid question, but all I need to bring my product
>> to a somewhat useable state now is to know how I can save
>> dictionaries into a database (mysql).
>> to save it into a file would be sufficient as well :-))
>> (as long as i can SAVE it somehow :^))
> Have you considered pickle?

If you need a serialized format that is readable and editable, take 
a look at YAML:

And, if serialization to XML is what you want, you might consider 
WDDX.  There is support for it in the PyXML package (under 

  - Dave

Dave Kuhlman
dkuhlman at

More information about the Python-list mailing list