]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Maintain peepholer's cumlc invariant by updating the running total
authorRaymond Hettinger <python@rcn.com>
Tue, 2 Nov 2004 04:20:10 +0000 (04:20 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 2 Nov 2004 04:20:10 +0000 (04:20 +0000)
commit5dec096e6a62be5769904111a16d32ee86a9ef46
treef697e85ad339cd1c2ff4ced57ad0cbbe6edc3912
parent7d112df94f97cec372bdb7f15eb265ded908da50
Maintain peepholer's cumlc invariant by updating the running total
everytime a LOAD_CONSTANT is encountered, created, or overwritten.

Added two tests to cover cases affected by the patch.
Lib/test/test_peepholer.py
Python/compile.c