Serhiy Storchaka added the comment:

simplejson behaves the same.

I thought default() was allowed to return only instances of types directly 
supported by JSON encoder (type(None), bool, int, float, list, tuple, dict). Is 
there a reason of allowing to call default() more than once on the same root 
object?

----------
nosy: +bob.ippolito, ezio.melotti, rhettinger, serhiy.storchaka
versions:  -Python 3.3, Python 3.4, Python 3.5, Python 3.6

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

Reply via email to