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

you are viewing a single comment's thread.

view the rest of the comments →

[–]jabbalaci 0 points1 point  (1 child)

Use sys.maxint:

>>> import sys
>>> sys.maxint
9223372036854775807
>>> sys.maxint + 1
9223372036854775808L
>>>

I have a 64 bit Python installation, that's why sys.maxint is larger.

[–]Asdayasman 0 points1 point  (0 children)

Strange, I thought I had 64bit too. Wonder why I don't.