string.atoi and string.atol broken?

Fredrik Lundh fredrik at pythonware.com
Tue Jan 25 20:10:44 EST 2005


Mike Moum wrote:

> s.atoi('4',3) should result in 11
>
> s.atoi('13',4) should result in 31
>
> s.atoi('12',4) should result in 30
>
> s.atoi('8',4) is legitimate, but it generates an error.
>
> Is this a bug, or am I missing something obvious?

the function's named "atoi", not "atoitoa".

</F> 






More information about the Python-list mailing list