comparison Python/mysnprintf.c @ 24736:ff05eef3a6d1 legacy-trunk

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.
author Guido van Rossum <guido@python.org>
date Sun, 11 Aug 2002 04:24:12 +0000
parents 8af86a952b2c
children 2925b568aacc a8cc8e6f0c1a
comparison
equal deleted inserted replaced
24735:b0d5fb577ab6 24736:ff05eef3a6d1