Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
udp
· 13y ago · 0 comments
If Python's JSON library accepts Infinity by default, that's a bug and should be reported.
Comments
[–]
JulianWasTaken
13y ago
It isn't. It's documented behavior. See
http://docs.python.org/2/library/json.html
. (simple)JSON deviates from the spec in a few minor ways.
[–]
andrewcooke
13y ago
more exactly, it's an option you can disable.
[–]
enaeseth
13y ago
You can try to report it as a bug, but the docs indicate that this is by design.