]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-138912: Improve MATCH_CLASS opcode performance (GH-138915)
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>
Sat, 14 Feb 2026 05:06:15 +0000 (06:06 +0100)
committerGitHub <noreply@github.com>
Sat, 14 Feb 2026 05:06:15 +0000 (21:06 -0800)
commit75d4839fa9069241ca9c3ee45ad8369ef9777500
tree8823b61cb31da26a0ae46e1661b9a7b85acb980d
parentfdbc135f9cf57599cca8aeeed947d0b736fdb197
gh-138912: Improve MATCH_CLASS opcode performance (GH-138915)

Only check for duplicates if there is at least one positional pattern.
With a test case for duplicate keyword attributes.
Lib/test/test_syntax.py
Misc/NEWS.d/next/Core_and_Builtins/2025-09-15-13-28-48.gh-issue-138912.61EYbn.rst [new file with mode: 0644]
Python/ceval.c