Hi.
> Hello,
>
> I attempt to make the string.atol('564645646465465L')
> conversion but I obtained this error trace with JPython 2.0 :
you mean JPython 1.1
>
> 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) :
>
of course, you mean Jython 2.0:
Jython 2.0 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import string
>>> string.atol('564645646465465L')
564645646465465L
>>>
In any case, an update is useful, it seems you have been lucky
until now <wink>, but Jython 2.0 fixes also more "serious" things.
regards, Samuele Pedroni.
|