[Python-Dev] Unclear on the way forward with unsigned integers
Guido van Rossum
guido@python.org
2002年10月07日 16:32:42 -0400
> I've reread pep237 (is this the relevant one?) again.
Yes.
> Do I understand this correctly, that all the following expressions
> will be 'true' and will compile/execute without any warnings (on
> a 32bit box):
>> Python 2.2:
> 0x80000000 =わ=わ -ひく2147483648
Yes.
> Python 2.3:
> 0x80000000L == 2147483648
Also in 2.2. Before that, 0x80000000L had the same value, but
2147483648 raised OverflowError.
> Python 2.x (Phase B1?):
> 0x80000000L == 2147483648
>> Python 2.y (Phase B2 and later):
> 0x80000000 =わ=わ 2147483648
Yes.
--Guido van Rossum (home page: http://www.python.org/~guido/)