Numeric Conversion

Fredrik Lundh fredrik at pythonware.com
Thu Dec 9 06:26:13 EST 1999


Iddo Friedberg <idoerg at cc.huji.ac.il> wrote:
> A small one: atoi &c. recognize the tokens '+' and '-' by themselves as
> a numeric value; i.e.
> 
> >>> m=string.atoi('+')
> >>> print m
> 0

what version are you using?  I'm pretty sure this was
fixed in 1.5.1 or 1.5.2...

</F>





More information about the Python-list mailing list