Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SystemError in re.match with a "*+" pattern #101955

Closed
Assignees
serhiy-storchakauyw4687
Labels
3.11only security fixes3.12only security fixestopic-regextype-bugAn unexpected behavior, bug, or error
@aryla

Description

@aryla

Bug report

The following code raises a SystemError.

importrere.match('((x)|y|z)*+','xyz')

Error message:

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

Linked PRs

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixestopic-regextype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp