]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-106052: Fix bug in the matching of possessive quantifiers (GH-106515) ...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Aug 2023 06:15:27 +0000 (09:15 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 06:15:27 +0000 (06:15 +0000)
commit5b76eaf02e1f7450c2b8525de0f7f0b65022850a
tree24928b46cb3d8e9b9123a9e7b74cb9fee15cdec3
parentedaa0db93ee23b1d936631dedde3adf5a1a0fb13
[3.11] gh-106052: Fix bug in the matching of possessive quantifiers (GH-106515) (GH-107795)

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]