gh-106052: Fix bug in the matching of possessive quantifiers#106515
Conversation
d73d88e to
1a420c0
Compare
|
Nit: (and not necessarily one that needs to be addressed directly) -- do you mean "backtracking", where you write "backtraces"? |
It did not work in the case of a subpattern containing backtracking. Temporary implement possessive quantifiers as equivalent greedy qualifiers in atomic groups.
1a420c0 to
89bf9dc
Compare
|
Thank you @ferdnyc. Fixed. |
|
It is a last resort. It will be merged if we not find a fix for POSSESSIVE_REPEAT implementation before the next releases. |
|
Since 'the next releases' for Python 3.12 is today, do you want this in for 3.12.0 beta 4, or wait for rc1? |
|
I think it can wait for rc1, but we should not miss bugfix release for 3.11. |
|
rc1 is in a few days if you want this in before then. I don't think this is really a release blocker even if it does sound nice to fix. 3.11 users already have to deal with the bug existence even if we manage to get a fix into a patch release. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
|
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…iers (pythongh-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 7b6e34e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-107795 is a backport of this pull request to the 3.11 branch. |
…iers (pythongh-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 7b6e34e) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-107796 is a backport of this pull request to the 3.12 branch. |
It did not work in the case of a subpattern containing backtraces.
Temporary implement possessive quantifiers as equivalent greedy qualifiers in atomic groups.