]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug #1053819: Segfault in tuple_of_constants
authorRaymond Hettinger <python@rcn.com>
Tue, 26 Oct 2004 08:59:14 +0000 (08:59 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 26 Oct 2004 08:59:14 +0000 (08:59 +0000)
commit23109ef11e91c49b56b517ce454bcf87a4153c62
tree53ca2774bc93c604957f33c6229b7b240dcf7532
parent368c0b22f8e43709afbbc3805f55ceffed127212
SF bug #1053819:  Segfault in tuple_of_constants

Peepholer could be fooled into misidentifying a tuple_of_constants.
Added code to count consecutive occurrences of LOAD_CONST.
Use the count to weed out the misidentified cases.
Added a unittest.
Lib/test/test_peepholer.py
Python/compile.c