mishok@laptop:~/doc/python/trunk$ python2.6 Python 2.6b2+ (unknown, Jul 24 2008, 12:13:34) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> x = xrange(sys.maxsize) >>> x = xrange(sys.maxsize+1) Traceback (most recent call last): File "", line 1, in OverflowError: long int too large to convert to int