python an sqlite objects

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Dec 4 03:20:11 EST 2008


skip at pobox.com a écrit :
>     Bruno> Most of the time, you want to serialize the instance's __dict__.
> 
> Does it recreate an instance at the other end or just a dict?

If you serialize a dict, you'll obviously get a dict back. Note that the 
point of json is *not* to replace pickle. json is a *data* serialization 
format meant to represent "basic" types (dicts, lists, strings and 
numbers) in human readable and (mostly) language-agnostic way. If you 
want a Python object store, you'll be better looking at ZODB, Durus or 
friends.



More information about the Python-list mailing list