]> granicus.if.org Git - python/commit
bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)
authoranimalize <animalize@users.noreply.github.com>
Mon, 18 Feb 2019 13:26:37 +0000 (21:26 +0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 18 Feb 2019 13:26:37 +0000 (15:26 +0200)
commit4a7f44a2ed49ff1e87db062e7177a56c6e4bbdb0
tree6daa91592d1d09f5b8ed34a1121e600a8bb03d74
parent02c04f26dfa637db7091b7e16036a980bbf40893
bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)

Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases.

Also add a missing index in re.rst.
Doc/library/re.rst
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2019-01-14-11-53-10.bpo-34294.3JFdg2.rst [new file with mode: 0644]
Modules/_sre.c
Modules/sre_lib.h