Message 62617 - Python tracker (original) (raw)

FWIW, using xrange() it seems to give the proper error message:

Traceback (most recent call last): File "bad_range.py", line 12, in print xrange(MyInt(264), MyInt(264+10)) OverflowError: long int too large to convert to int