hex string to hex value
Grant Edwards
grante at visi.com
Tue Nov 22 20:33:06 EST 2005
On 2005-11-23, tim <tim.vets at skynet.be> wrote:
>>>>>int(hex(m),16)
>>>>>
>>>>>
>>66
>>
>>Fredrik Lundh's solution works if the hex string starts with "0x"
>>(which it will when the string is created with the hex function).
>>
> aren't you converting from a hex string to a decimal value here?
No.
He's converting from a hex string to an integer object.
--
Grant Edwards grante Yow! It's OKAY --- I'm an
at INTELLECTUAL, too.
visi.com
More information about the Python-list
mailing list