Obtaining Python version

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


On Wed, Aug 5, 2009 at 12:17 AM, MRAB <python at mrabarnett.plus.com> wrote:

> 0x00F0 is 240.


... Right. I wonder where my brain is. *searches pocket*

So, what am I doing wrong here?

>>> int(str(0x00F0), 16)
576

Cheers,
-Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090805/555ede95/attachment-0001.html>


More information about the Python-list mailing list