]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-106052: Fix bug in the matching of possessive quantifiers (GH-106515) ...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Aug 2023 10:26:51 +0000 (13:26 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 10:26:51 +0000 (12:26 +0200)
commit3bb43b7b1b75154bc4e94b1fa81afe296a8150d0
tree9a31a9314f4f6965c8662a102294b5f58ecde50e
parentaa2ecef22a66938cba072ea57c27c63c11f79c9a
[3.12] gh-106052: Fix bug in the matching of possessive quantifiers (GH-106515) (#107796)

[3.12] gh-106052: Fix bug in the matching of possessive quantifiers (gh-106515)

It did not work in the case of a subpattern containing backtracking.

Temporary implement possessive quantifiers as equivalent greedy qualifiers
in atomic groups..
(cherry picked from commit 7b6e34e5baeb4162815ffa4d943b09a58e3f6580)
Lib/re/_compiler.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-07-07-14-52-31.gh-issue-106052.ak8nbs.rst [new file with mode: 0644]