Message1843

Author mastrodomenico
Recipients
Date 2007-08-17.15:34:26
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I guess this can be considered the "correct" behaviour for bugward compatibility with CPython 2.2.

Python 2.2.3 (#1, Mar  4 2007, 00:49:18)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> int(1e10)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OverflowError: float too large to convert

Was fixed in CPython 2.3 (returns 10000000000L) and 3.0 (returns 10000000000, without the funny "L" at the end) as part of PEP 237: http://www.python.org/dev/peps/pep-0237/
History
Date User Action Args
2008-02-20 17:17:59adminlinkissue1774886 messages
2008-02-20 17:17:59admincreate