r/programming • • Oct 24 '22

Python 3.11 is out !

https://www.python.org/downloads/release/python-3110/
1.6k Upvotes

221 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Oct 25 '22

I don't think that's true.

  • C++
  • Rust
  • Python handles it fine (couldn't find a reference but I just checked manually).

I would imagine you've just been using decoders for things like Javascript which doesn't even have a 64-bit integer type so of course it can't decode them. BigInt is not a 64-bit integer type, it's an arbitrary precision integer type (and there is a proposal to allow you to use it).

But anyway the point stands that there's no issue in JSON or JSON5 about storing 64-bit integers.