You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SystemError in re.match with a "*+" pattern #101955
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Arttu\AppData\Local\Programs\Python\Python311\Lib\re\__init__.py", line 166, in match
return _compile(pattern, flags).match(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: The span of capturing group is wrong, please report a bug for the re module.
((x)|y|z)++ gives the same error but (?>((x)|y|z)*) does not.
Your environment
Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32
Activity
uyw4687 commentedon Mar 6, 2023
I'll look into it
corona10 commentedon Mar 6, 2023
Please go a head
pythongh-101955: Fix SystemError in possesive quantifier with alterna…
gh-101955: Fix SystemError in possesive quantifier with alternative a…
pythongh-101955: Fix SystemError in possesive quantifier with alterna…
pythongh-101955: Fix SystemError in possesive quantifier with alterna…
serhiy-storchaka commentedon Nov 18, 2024
Thanks @wjssz. The final code is his contribution.
[3.12] gh-101955: Fix SystemError in possesive quantifier with altern…
[3.13] gh-101955: Fix SystemError in possesive quantifier with altern…
pythongh-101955: Fix SystemError in possesive quantifier with alterna…
pythongh-152026: Support redefinition of named capture groups
pythongh-152026: Support redefinition of named capture groups