On Fri, Apr 8, 2011 at 5:51 AM, Michael Pedersen <[email protected]> wrote:
> I guess my big question would be this: Why not use simplejson, which
> includes encode/decode functions as part of the module?
>

Simplejson as the json module should only encode/decode data
structures, not objects.

I think that there should be a way to automate it for any type of
object by using the pickle protocol (not the pickle module, but the
protocol/interface), otherwise accessing the __dict__ should work but
it isn't a very clean way to do it and must also be done recursively.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to