Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If Python's JSON library accepts Infinity by default, that's a bug and should be reported.



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.


more exactly, it's an option you can disable.


You can try to report it as a bug, but the docs indicate that this is by design.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: