Message41
JPython 1.1beta2 on java1.1.7
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> import string
>>> string.atoi('0101',2)
Traceback (innermost last):
File "<console>", line 1, in ?
File "/Macintosh_HD/Programmer/Java/JPython-1.1beta2/Lib/string.py", line 228,
in atoi
TypeError: int$(): expected 1 args; got 2
>>> string.atol('0101',2)
Traceback (innermost last):
File "<console>", line 1, in ?
File "/Macintosh_HD/Programmer/Java/JPython-1.1beta2/Lib/string.py", line 256,
in atol
TypeError: long$(): expected 1 args; got 2
>>>
The new string module who came with JPython 1.1beta1, atoi and atol call int and
long
for converting string to integer or long. But this function have not the optinal
parameter base. |
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:16:38 | admin | link | issue222802 messages |
| 2008-02-20 17:16:38 | admin | create | |
|