]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612)
authorSKO <41810398+uyw4687@users.noreply.github.com>
Wed, 16 Aug 2023 07:43:45 +0000 (16:43 +0900)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 07:43:45 +0000 (10:43 +0300)
commitabd9cc52d94b8e2835322b62c29f09bb0e6fcfe9
tree252a5f9d86fa4746cf7615ab7e6f16ceb12dede5
parenta86df298df5b02e2d69ea6879e9ed10a7adb85d0
gh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612)

Restore the global Input Stream pointer after trying to match a sub-pattern.

Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
Lib/re/_compiler.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-03-14-01-19-57.gh-issue-100061.CiXJYn.rst [new file with mode: 0644]
Modules/_sre/sre_lib.h