hex/oct constants > sys.maxint will return positive values in Python 2.4 and up
Fredrik Lundh
fredrik at pythonware.com
Sun Nov 17 10:07:02 EST 2002
Aahz wrote:
> >> 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.
> >
> >...and remove it again when you get to Python 2.5.
>
> Why?
hint:
*** pep-0237.txt 12 Aug 2002 00:55:43 -0000 1.15
--- pep-0237.txt 7 Nov 2002 15:41:19 -0000 1.16
***************
*** 213,217 ****
option, but it is off by default.
! B2. The warning for long literals is turned on by default.
B3. The warnings about operations that give different results than
--- 213,217 ----
option, but it is off by default.
! B2. (This stage is deleted.)
B3. The warnings about operations that give different results than
</F>
More information about the Python-list
mailing list