This section lists previously described changes that may require changes to your code:
X in Y
now works
if X is more than one character long.
0xffffffff
now trigger a FutureWarning. Currently
they're stored as 32-bit numbers and result in a negative value, but
in Python 2.4 they'll become positive long integers.
There are a few ways to fix this warning. If you really need a
positive number, just add an "L" to the end of the literal. If
you're trying to get a 32-bit integer with low bits set and have
previously used an expression such as (1 « 31)
, it's probably
clearest to start with all bits set and clear the desired upper bits.
For example, to clear just the top bit (bit 31), you could write
0xffffffffL &~(1L«31)
.
__debug__
.
from distutils import core kw = {'sources': 'foo.c', ...} if hasattr(core, 'get_distutil_options'): kw['depends'] = ['foo.h'] ext = Extension(**kw)
None
as a variable name will now result in a
SyntaxWarning warning.
See About this document... for information on suggesting changes.