int('0x0001')

Michal Bozon bozon at natur.cuni.cz
Thu Mar 16 15:02:09 CET 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