int() built-in and hex "0x..." strings
Bruce Edge
bedge at troikanetworks.com
Mon Jul 23 14:56:49 EDT 2001
In article <slrn.pl.9los2v.jh4.qrczak at qrnik.zagroda>, "Marcin 'Qrczak'
Kowalczyk" <qrczak at knm.org.pl> wrote:
> Mon, 23 Jul 2001 11:07:57 -0700, Bruce Edge <bedge at troikanetworks.com>
> pisze:
>
>>>>> int('0x80')
>
>> Is there another int() type lib func that I should use instead?
>
> int('0x80', 0) == 128
> int('80', 0) == 80
groan, thanks.
-Bruce.
More information about the Python-list
mailing list