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 eric.smith
Recipients Haoyu SUN, eric.smith
Date 2020-05-15.13:57:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589551040.58.0.318498920645.issue40633@roundup.psfhosted.org>
In-reply-to
Content
Since this is documented behavior (https://docs.python.org/3.8/library/json.html#infinite-and-nan-number-values), we can't change it by default without breaking code.

What JavaScript JSON encoders and decoders specifically have a problem with this behavior? The documentation says "This behavior is not JSON specification compliant, but is consistent with most JavaScript based encoders and decoders.", so if there are encoders and decoders that it doesn't work with, that would be good to know.
History
Date User Action Args
2020-05-15 13:57:20eric.smithsetrecipients: + eric.smith, Haoyu SUN
2020-05-15 13:57:20eric.smithsetmessageid: <1589551040.58.0.318498920645.issue40633@roundup.psfhosted.org>
2020-05-15 13:57:20eric.smithlinkissue40633 messages
2020-05-15 13:57:20eric.smithcreate