[issue5535] json custom encoder not fully functionnal
Bob Ippolito
report at bugs.python.org
Sun Mar 22 21:15:34 CET 2009
Bob Ippolito <bob at redivi.com> added the comment:
The documentation says "If specified, default is a function that gets
called for objects that can’t otherwise be serialized. It should return a
JSON encodable version of the object or raise a TypeError."
*can't otherwise be serialized* means that the object must not be a
subtype of something that is serializable. The implementation is correct
and this behavior is documented. Documentation patches to make this more
obvious are acceptable, but it's not a bug so it can't be fixed as such.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5535>
_______________________________________
More information about the Python-bugs-list
mailing list