]> granicus.if.org Git - python/commit
Issue #28765: _sre.compile() now checks the type of groupindex and indexgroup
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Nov 2016 22:04:39 +0000 (23:04 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Nov 2016 22:04:39 +0000 (23:04 +0100)
commit726a57d45f8606ad5a33f7c6bbd1e8c2f8cfbdef
tree9ca6ccf2b5ee118ccf1fd0e7b47fcaf9f833cda7
parente3d75c63cd100675f96cd5c152ccd021ba9e6ebb
Issue #28765: _sre.compile() now checks the type of groupindex and indexgroup

groupindex must a dictionary and indexgroup must be a tuple.

Previously, indexgroup was a list. Use a tuple to reduce the memory usage.
Lib/sre_compile.py
Lib/test/test_re.py
Modules/_sre.c
Modules/clinic/_sre.c.h
Modules/sre.h