bpo-34294: re module, fix wrong capturing groups in rare cases · Pull Request #11546 · python/cpython
ghost
changed the title
bpo-34294: in re module, reset state when must_advance
bpo-34294: in re module, fix wrong capturing groups when advancing inside a match
ghost
changed the title
bpo-34294: in re module, fix wrong capturing groups when advancing inside a match
bpo-34294: in re module, fix wrong capturing groups when advancing inside a search
ghost
changed the title
bpo-34294: in re module, fix wrong capturing groups when advancing inside a search
bpo-34294: in re module, fix wrong capturing groups when must_advance attempt fails.
ghost
changed the title
bpo-34294: in re module, fix wrong capturing groups when must_advance attempt fails.
bpo-34294: in re module, fix wrong capturing groups in SRE(search) function.
Need to reset capturing groups between two `SRE(match)` callings in loops, this fixes wrong capturing groups in rare cases. Other changes in this commit: * Emit `SRE_ERROR_STATE` when reach impossible code path, rather than return a match failure silently. * Add two test-cases to `test_zerowidth()`. * Add a missing index in `re.rst`. * Remove an outdated FIXME comment in `_sre.c`.
ghost
changed the title
bpo-34294: in re module, fix wrong capturing groups in SRE(search) function.
bpo-34294: re module, fix wrong capturing groups in rare cases
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
Feb 18, 2019…onGH-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. (cherry picked from commit 4a7f44a) Co-authored-by: animalize <animalize@users.noreply.github.com>
miss-islington added a commit that referenced this pull request
Feb 18, 2019
ghost
mentioned this pull request
ghost
deleted the
fix_re
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters