Int to long conversion bug?

Emile van Sebille emile at fenx.com
Sat Oct 13 10:51:52 EDT 2001


In view of the int to long automatic conversion, should this be considered a
bug?

F:\Python22>python
Python 2.2a4 (#24, Sep 27 2001, 21:44:09) [MSC 32 bit (Intel)] on win32

>>> n = int('9999999999')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: int() literal too large: 9999999999
>>>

I can use long() of course, but is it the intent that long become an
implementation detail?

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list