This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akitada
Recipients akitada, belopolsky, christian.heimes, josm, rhettinger, robertwb, zanella
Date 2008-11-29.20:28:13
SpamBayes Score 1.29978e-05
Marked as misclassified No
Message-id <>
I'm just curious to know which is the right behavior.

# Python 3.0
Traceback (most recent call last):
  File "", line 7, in <module>
    print(range(MyInt(2**3), MyInt(2**3+10)))
TypeError: 'MyInt' object cannot be interpreted as an integer

# Python 2.7a0
[8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
[18446744073709551616L, 18446744073709551617L, 18446744073709551618L,
18446744073709551619L, 18446744073709551620L, 18446744073709551621L,
18446744073709551622L, 18446744073709551623L, 18446744073709551624L,
Traceback (most recent call last):
  File "", line 11, in <module>
    print(range(MyInt(2**64), MyInt(2**64+10)))
TypeError: range() integer start argument expected, got instance.
Date User Action Args
2008-11-29 20:28:16akitadasetrecipients: + akitada, rhettinger, belopolsky, christian.heimes, josm, robertwb, zanella
2008-11-29 20:28:16akitadasetmessageid: <>
2008-11-29 20:28:15akitadalinkissue1533 messages
2008-11-29 20:28:13akitadacreate