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

Raymond Hettinger report at bugs.python.org
Fri May 15 23:43:49 EDT 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

One other issue just came to mind.  While we could convert NaN to null during encoding, there isn't a reasonable way to reverse the process (a null could either be a NaN or a legitimate None).  That would limit the utility of a new optional conversion.

----------

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


More information about the Python-bugs-list mailing list