From: Guido van Rossum Date: Wed, 14 Aug 2002 16:11:30 +0000 (+0000) Subject: Add news about FutureWarning and PEP 237 stage B0. X-Git-Tag: v2.3c1~4473 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9be8946a3e55febe59653fd3c10e8b9338caf62f;p=python Add news about FutureWarning and PEP 237 stage B0. Tim predicts that we might as well call this CassandraWarning. --- diff --git a/Misc/NEWS b/Misc/NEWS index ba9bf3c89b..0a97187849 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -57,6 +57,29 @@ Type/class unification and new-style classes Core and builtins +- There's a new warning category, FutureWarning. This is used to warn + about a number of situations where the value or sign of an integer + result will change in Python 2.4 as a result of PEP 237 (integer + unification). The warnings implement stage B0 mentioned in that + PEP. The warnings are about the following situations: + + - Octal and hex literals without 'L' prefix in the inclusive range + [0x80000000..0xffffffff]; these are currently negative ints, but + in Python 2.4 they will be positive longs with the same bit + pattern. + + - Left shifts on integer values that cause the outcome to lose + bits or have a different sign than the left operand. To be + precise: x<