Skip to content

[3.7] bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)#11919

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-4a7f44a-3.7
Feb 18, 2019
Merged

[3.7] bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)#11919
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-4a7f44a-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Feb 18, 2019

Copy link
Copy Markdown
Contributor

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

https://bugs.python.org/issue34294

…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

Copy link
Copy Markdown
Contributor Author

@animalize and @serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit 0e379d4 into python:3.7 Feb 18, 2019
@miss-islington
miss-islington deleted the backport-4a7f44a-3.7 branch February 18, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants