How compare hex numbers?

Gustaf Liljegren gustafl at algonet.se
Sat Dec 14 07:37:11 EST 2002


Martin v. Löwis <martin at v.loewis.de> wrote in news:atf6n6$1uh$03$1 at news.t-
online.com:

> To compare numbers, you should make sure that U is an integer, not a
> string. Then you can compare it to another integer, which you might
> denote through a hexadecimal *literal*, e.g. 0x10000.

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

Gustaf



More information about the Python-list mailing list