]> granicus.if.org Git - python/commit
SF #660455 : patch by NNorwitz.
authorGuido van Rossum <guido@python.org>
Wed, 12 Feb 2003 16:57:47 +0000 (16:57 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Feb 2003 16:57:47 +0000 (16:57 +0000)
commit66b1259dbc2cf4aaefd779d76c4a83fe8003bafd
treefb23dcbbc51fa40a706479b01aa5de3a11f61314
parente71b9f830b0a3829de799c6b826ea2b4450762c4
SF #660455 : patch by NNorwitz.

"Unsigned" (i.e., positive-looking, but really negative) hex/oct
constants with a leading minus sign are once again properly negated.
The micro-optimization for negated numeric constants did the wrong
thing for such hex/oct constants.  The patch avoids the optimization
for all hex/oct constants.

This needs to be backported to Python 2.2!
Lib/test/test_compile.py
Lib/test/test_grammar.py
Python/compile.c