0

As I understood, on Python 3.0+ there's no limit to the integer value. (source)

I was just wondering: how is that possible? I mean, there's no infinite memory neither infinite PC storage.

  • 3
    You are mixing two different limits, the Python limitation (None) and the hardware limitation. BTW: There might be more of them. – Klaus D. Jan 26 '16 at 13:08
  • 1
    To get to an infinite number you also need infinite time and infinite storage. That's possible in maths but not in the real world e.g. in CPUs. – h0ch5tr4355 Jan 26 '16 at 13:10
  • 1
    Cheeky answer: Proof by contradiction. Suppose N is the largest integer; but N+1 is also an integer, and it's bigger than N. Source: Ancient Greeks. See more reasonable answers about hardware limits for proper answer. – MathBio Jan 26 '16 at 13:14
  • If instead, the `sys.maxint` constant was not removed, there might not be enough memory to store it in your PC. – quamrana Jan 26 '16 at 13:23

0 Answers0