Issue 811898: int ("ffffffd3", 16) gives error (original) (raw)

Logged In: YES user_id=139865

ints in Python 2.2 on a 32 bit machine can only hold values from -(2 ** 31) to (2 ** 31) - 1. int() will not return a negative number without a minus sign, the opposite of what hex literals do. In Python 2.3, int('ffffffd3', 16) returns 4294967251L. In Python 2.4, 0xffffffd3 will mean 4294967251L. See PEP 237 for more information.

Mark as invalid.