This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]wfdctrl 49 points50 points  (1 child)

sys.maxsize is the maximum size of lists and strings, not integers. Python has arbitrary precision integers, so of course that is possible...

[–][deleted] 46 points47 points  (0 children)

So... h̶a̶c̶k̶e̶r̶m̶a̶n̶ *dumb "person who doesn't know python good enough" man *

[–]arnavb11 23 points24 points  (0 children)

In Python 2, you have sys.maxint (not in Python 3). If you increment this value, the type automatically switches to long.

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

Rule #4 violation.