From: Jerome B. <jer...@xr...> - 2001-05-21 10:21:47
|
Hello, I attempt to make the string.atol('564645646465465L') conversion but I obtained this error trace with JPython 2.0 : merveilles{27} jpython1.1 JPython 1.1 on java1.2.2 (JIT: sunwjit) Copyright (C) 1997-1999 Corporation for National Research Initiatives >>> import string >>> string.atol('564645646465465L') Traceback (innermost last): File "<console>", line 1, in ? File "/opt/Misc/src/Python-1.5.2/Lib/string.py", line 417, in atol ValueError: non-integer argument to string.atol >>> ^D I wonder if this problem is fixed in the JPython 2.0 as it seems to be in the Python 2.0 (is an update usefull) : merveilles{22} python1.5.2 Python 1.5.2 (#31, May 26 1999, 19:10:12) [C] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import string >>> string.atol('564645646465465L') Traceback (innermost last): File "<stdin>", line 1, in ? ValueError: invalid literal for atol(): 564645646465465L >>> merveilles{20} python2.0 Python 2.0 (#4, Oct 31 2000, 14:29:17) [C] on sunos5 Type "copyright", "credits" or "license" for more information. >>> import string >>> string.atol('564645646465465L') 564645646465465L >>> Thanks, Jerome |