Bob Ippolito <b...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue5535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com