Skip Montanaro <s...@pobox.com> added the comment:

> FWIW, (simple)json module serializes subclasses of builtin types
> just as expected.

Does that round trip properly?  For instance, if you serialize an
instance of a list subclass does it unserialize as a list instance
or as the subclass?

Perhaps JSON has some way of supporting a user-defined set of types.
XML-RPC has no way to do that, and feeding in an instance of a
subtype then getting the base type out on the other end was deemed
a bad thing.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue469972>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to