hex int and string

luca72 lucaberto at libero.it
Fri Nov 27 09:54:30 CET 2009

hello i have a problem

i have this

str = 'D3'
and i need to trasform in 0xd3 type int and not type string how i can
do this?
if i do
hex(int(str,16) ) i obtain a string and this is not what i need.

thanks Luca

More information about the Python-list mailing list