Python Gotcha with Octal Numbers
Quinn Dunkan
quinn at vomit.ugcs.caltech.edu
Thu Feb 14 14:25:09 EST 2002
On Thu, 14 Feb 2002 17:35:03 +0000 (UTC), Christopher Saunter
<Christopher.Saunter at durham.ac.uk> wrote: >Steve Holden (sholden at holdenweb.com)
wrote:
>Also, on the subject of number bases, is there an easy (read library) way
>to take a string containing a number represented as hex and convert it to
>an int or float? I've looked through the libraries, and I'm sure it's
>there somewhere, just can't find it.....
Closer than you think:
print int.__doc__
More information about the Python-list
mailing list