This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Haoyu SUN, eric.smith, mark.dickinson
Date 2020-05-15.16:54:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589561675.58.0.629288507557.issue40633@roundup.psfhosted.org>
In-reply-to
Content
I don't think "null" in JSON is supposed to represent "Not a Number"; it's closer in meaning to Python's `None`. I definitely wouldn't want to see nans translated to "null" by default.

This also only seems to address a part of the issue: what's the proposed action for "Infinity" and "-Infinity"? We've written internal code to deal with float special values in JSON a few times (usually to work with databases that stick to the strict JSON definition), and that code has to find a way to deal with all three of the special values.
History
Date User Action Args
2020-05-15 16:54:35mark.dickinsonsetrecipients: + mark.dickinson, eric.smith, Haoyu SUN
2020-05-15 16:54:35mark.dickinsonsetmessageid: <1589561675.58.0.629288507557.issue40633@roundup.psfhosted.org>
2020-05-15 16:54:35mark.dickinsonlinkissue40633 messages
2020-05-15 16:54:35mark.dickinsoncreate