On 2005-11-23, tim <[EMAIL PROTECTED]> 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            
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to