Issue1774886
Created on 2007-08-15.17:35:24 by pekka.klarck, last changed 2008-03-10.01:26:04 by pjenvey.
msg1842 (view) |
Author: Pekka Klärck (pekka.klarck) |
Date: 2007-08-15.17:35:24 |
|
Jython 2.2rc3 on java1.6.0
Type "copyright", "credits" or "license" for more information.
>>> int(1e10)
Traceback (innermost last):
File "<console>", line 1, in ?
OverflowError: float too large to convert
>>> int(1e9)
1000000000
>>> long(1e10)
10000000000L
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> int(1e10)
10000000000L
>>> long(1e10)
10000000000L
|
msg1843 (view) |
Author: Lino Mastrodomenico (mastrodomenico) |
Date: 2007-08-17.15:34:26 |
|
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/
|
msg1844 (view) |
Author: keshav upadhyaya (ukeshav) |
Date: 2007-09-10.13:28:16 |
|
Please make the status closed as it is fixed
|
|
Date |
User |
Action |
Args |
2008-03-10 01:26:04 | pjenvey | set | status: open -> closed resolution: invalid |
2007-08-15 17:35:24 | pekka.klarck | create | |
|