int('0x0001')

Michal Bozon bozon at natur.cuni.cz
Thu Mar 16 09:02:09 EST 2000


Why int() cannot handle string of hexadecimal representation of integer?
I mean e.g.  int('0xA') -> 10.

I have to use eval('0xA')

regards,
Michal Bozon
bozon at natur.cuni.cz
http://www.natur.cuni.cz/~bozon




More information about the Python-list mailing list