Message1843
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/ |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:59 | admin | link | issue1774886 messages |
2008-02-20 17:17:59 | admin | create | |
|