]> granicus.if.org Git - python/commit
Implement stage B0 of PEP 237: add warnings for operations that
authorGuido van Rossum <guido@python.org>
Sun, 11 Aug 2002 04:24:12 +0000 (04:24 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 11 Aug 2002 04:24:12 +0000 (04:24 +0000)
commit078151da901bebce6eb232d958fbbb1e5ced4399
treed25483ba545d58138518591645e60caa20a7262b
parentd92ae840e940db2fc8e9ec6293fe22dbb73f4514
Implement stage B0 of PEP 237: add warnings for operations that
currently return inconsistent results for ints and longs; in
particular: hex/oct/%u/%o/%x/%X of negative short ints, and x<<n that
either loses bits or changes sign.  (No warnings for repr() of a long,
though that will also change to lose the trailing 'L' eventually.)

This introduces some warnings in the test suite; I'll take care of
those later.
Objects/intobject.c
Objects/stringobject.c
Objects/unicodeobject.c
Python/compile.c