]> granicus.if.org Git - python/commit
Issue #11244: The peephole optimizer is now able to constant-fold
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 11 Mar 2011 16:27:02 +0000 (17:27 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 11 Mar 2011 16:27:02 +0000 (17:27 +0100)
commit17b880a5d6b64f1e7d26ec8229e8b41cdf740690
tree48914ff19d84e0a6802a5a14af640122a0e5bb58
parent336c729563a3c0ec0d4955c59100ad772e9feb48
Issue #11244: The peephole optimizer is now able to constant-fold
arbitrarily complex expressions.  This also fixes a 3.2 regression where
operations involving negative numbers were not constant-folded.
Lib/test/test_peepholer.py
Misc/NEWS
Python/peephole.c