]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106052: Fix bug in the matching of possessive quantifiers (gh-106515)
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 9 Aug 2023 05:47:57 +0000 (08:47 +0300)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 05:47:57 +0000 (08:47 +0300)
commit7b6e34e5baeb4162815ffa4d943b09a58e3f6580
tree8fbfdfcd748b84975429eea8f71fa71308c747fa
parent73507382ac184a72b59ebb0c2f85e8b1d2dfa58e
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.
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]