Toot

Written by SnoopJ on 2024-12-11 at 03:27

@nedbat huh, the case of float("inf") producing unambiguously-wrong JSON is bizarre. Historical artifact of supporting web applications sending stuff to JS?

The only filed bug I can find about it¹ seems to be more concerned with being able to serialize NaN to null.

The unfortunately-named allow_nan parameter at least turns that into an exception, but I can't recall the last time I saw code that cared to set it.

¹ https://github.com/python/cpython/issues/98306

=> More informations about this toot | View the thread | More toots from SnoopJ@hachyderm.io

Mentions

=> View nedbat@hachyderm.io profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113632060408013414
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
231.358188 milliseconds
Gemini-to-HTML Time
0.349129 milliseconds

This content has been proxied by September (ba2dc).