[issue30732] json.dumps() lacks information about RecursionError related to default function

Serhiy Storchaka report at bugs.python.org
Mon Jul 31 11:08:28 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue30732>
_______________________________________


More information about the Python-bugs-list mailing list