hex and long

Robin Becker robin at jessikat.fsnet.co.uk
Fri Apr 12 22:45:08 EDT 2002


In 2.2 I find the following peculiarity

>>> 0xffffffff
68719476735L
>>> 0xffffffff
-1
>>>

clearly the second is being treated as a 32 bit int and the first as a
long. Do I have to be careful with bit 31? What happens on 64 bit
machines? 
-- 
Robin Becker



More information about the Python-list mailing list