[issue40633] json.dumps() should encode float number NaN to null

Eric V. Smith report at bugs.python.org
Sat May 16 09:20:06 EDT 2020


Eric V. Smith <eric at trueblade.com> added the comment:

I don't think we want to generate output no matter what. Should datetime instances become null instead of raising an exception?

Are there types other than float where some values are json serializable and others aren't?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40633>
_______________________________________


More information about the Python-bugs-list mailing list