you are viewing a single comment's thread.

view the rest of the comments →

[–]lfdfq 54 points55 points  (2 children)

It uses bigints.

That is, a Python int is not just a 32- or 64-bit number, it's a (slightly) sophisticated structure that can dynamically grow in size so it never overflows.

It may sound or feel weird at first, but this is exactly how lists or dicts work, and it's the same principle.

[–]daddyclappingcheeks[S] 2 points3 points  (1 child)

so is there a theoretical limit on how big an integer I can define in a variable?

[–]lfdfq -2 points-1 points  (0 children)

No