Is this a bug in int()?

MartinRinehart at gmail.com MartinRinehart at gmail.com
Fri Dec 21 07:38:32 EST 2007


Tokenizer bug reported.

MartinRineh... at gmail.com wrote:
> >>>int('0x', 16)
> 0
>
> I'm working on a tokenizer and I'm thinking about returning a
> MALFORMED_NUMBER token (1.2E, .5E+)



More information about the Python-list mailing list