int() should be extended?

David Eppstein eppstein at ics.uci.edu
Mon Oct 21 14:17:02 EDT 2002


In article <mailman.1035215427.17708.python-list at python.org>,
 sismex01 at hebmex.com wrote:

> >>> s = "0x41"
> >>> int(s[2:])
> 65
> 
> Good luck!

You have a strange Python processor.  When I run this, I get 41.
You did run it, right?

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list