hex/oct constants > sys.maxint will return positive values in Python 2.4 and up

Tim Peters tim.one at comcast.net
Wed Nov 6 21:51:16 EST 2002


[Tim]
>> Write it in a platform-independent way.  If you *intended* this 
>> literal to mean "a 1 bit followed by 31 zero bits", then stick an
>> L on the end of the literal.

[/F]
> ...and remove it again when you get to Python 2.5.

You can if you want.  The PEP continues to allow it until Python 3.0.




More information about the Python-list mailing list