Skip to content

[3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799)#151701

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-fd53ae1-3.15
Jun 19, 2026
Merged

[3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799)#151701
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-fd53ae1-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Frozendict has _Py_TPFLAGS_MATCH_SELF set so works correctly
with the single-arg class matching. However it isn't documented
in the list of classes this works with and it isn't tested.

The test is some way below the other similar tests but anything
else would need a large renumbering.
(cherry picked from commit fd53ae1)

Co-authored-by: da-woods dw-git@d-woods.co.uk

…pythonGH-150799)

Frozendict has `_Py_TPFLAGS_MATCH_SELF` set so works correctly
with the single-arg class matching. However it isn't documented
in the list of classes this works with and it isn't tested.

The test is some way below the other similar tests but anything
else would need a large renumbering.
(cherry picked from commit fd53ae1)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jun 19, 2026
@vstinner vstinner enabled auto-merge (squash) June 19, 2026 08:20
@vstinner vstinner merged commit 7e36838 into python:3.15 Jun 19, 2026
59 checks passed
@miss-islington miss-islington deleted the backport-fd53ae1-3.15 branch June 19, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants