Obtaining Python version

Xavier Ho contact at xavierho.com
Tue Aug 4 10:48:39 EDT 2009


On Wed, Aug 5, 2009 at 12:44 AM, D'Arcy J.M. Cain <darcy at druid.net> wrote:

> On Wed, 5 Aug 2009 00:39:56 +1000
>> Xavier Ho <contact at xavierho.com> wrote:
>> > So, what am I doing wrong here?
>> >
>> > >>> int(str(0x00F0), 16)
>>
>> Look at the output of str(0x00F0) for a clue.
>>
>
> ... Wow. I *am* slow tonight. Thanks.
>
> >>> int('00F0', 16)
> 240
>

(oops.)
I was mixing the hex literals and the string literals.

Thanks a bunch.
-Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090805/1092e172/attachment.html>


More information about the Python-list mailing list