[Python-Dev] Re: (no subject)

Terry Reedy tjreedy at udel.edu
Thu Jun 17 15:57:26 EDT 2004


"Patrick Stinson" <listuser at br.logorrhea.com> wrote in message
news:200406161313.34568.listuser at br.logorrhea.com...
> if you had a hex string like
> '0x7c'
> how would you convert it to an int?
>
> int(0x7c) works, but not int('0x7c')

Usage questions like this belong on comp.lang.python or the corresponding
mailing list, not on the development list.  In addition, you should give a
subject heading, something like 'Int from hex string'.  '(no subject)'
makes your posting look like possible spam, and it invites people who pick
and choose threads to skip on to the next.

Terry J. Reedy






More information about the Python-Dev mailing list