Packing a simple dictionary into a string - extending struct?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Wed Jun 20 08:06:26 EDT 2007
In <f5b2f7$ptf$1 at south.jnrs.ja.net>, Jonathan Fine wrote:
> I want to serialise a dictionary, whose keys and values are ordinary strings
> (i.e. a sequence of bytes).
Maybe you can use ConfigObj_ or JSON_ to store that data. Another format
mentioned in the binary XML article you've linked in your post is
`ASN.1`_. And there's a secure alternative to `pickle` called cerealizer_.
.. _`ASN.1`: http://pyasn1.sourceforge.net/
.. _cerealizer: http://home.gna.org/oomadness/en/cerealizer/
.. _ConfigObj: http://www.voidspace.org.uk/python/configobj.html
.. _JSON: http://www.json.org/
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list