Is this a bug in int()?

MartinRinehart at gmail.com MartinRinehart at gmail.com
Thu Dec 20 16:27:52 EST 2007


>>>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