Issue222802
Created on 2000-11-18.18:56:48 by bckfnn, last changed 2000-11-18.22:12:59 by bckfnn.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 18:56:48 | bckfnn | create | |
Created on 2000-11-18.18:56:48 by bckfnn, last changed 2000-11-18.22:12:59 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg41 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.18:56:48 | |
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.
|
|||
| msg42 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.22:12:59 | |
Fixed in __builtin__ and PyString. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 18:56:48 | bckfnn | create | |
Supported by Python Software Foundation,
Powered by Roundup