serialize dictionary type
Dave Kuhlman
dkuhlman at rexx.com
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:
http://www.yaml.org.
And, if serialization to XML is what you want, you might consider
WDDX. There is support for it in the PyXML package (under
xml/marshal):
http://www.python.org/sigs/xml-sig
http://pyxml.sourceforge.net/
- Dave
--
Dave Kuhlman
dkuhlman at rexx.com
http://www.rexx.com/~dkuhlman
More information about the Python-list
mailing list