How compare hex numbers?

Erik Max Francis max at alcyone.com
Sat Dec 14 16:23:40 EST 2002


Gustaf Liljegren wrote:

> Okay, so I just remove the line with the hex() function. Thank you for
> a
> good explanation!

And remove the quotes around your hexadecimal literal which make it a
string, not a number.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ A physicist is an atom's way of knowing about atoms.
\__/ George Wald
    Python chess module / http://www.alcyone.com/pyos/chess/
 A chess game adjudicator in Python.



More information about the Python-list mailing list