Skip to content

gh-58370 Document and test frozendict class matching behaviour#150799

Open
da-woods wants to merge 1 commit into
python:mainfrom
da-woods:frozendict-self-match
Open

gh-58370 Document and test frozendict class matching behaviour#150799
da-woods wants to merge 1 commit into
python:mainfrom
da-woods:frozendict-self-match

Conversation

@da-woods
Copy link
Copy Markdown
Contributor

@da-woods da-woods commented Jun 2, 2026

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

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
@da-woods
Copy link
Copy Markdown
Contributor Author

da-woods commented Jun 2, 2026

I'm assuming this is fine to bundle onto the original frozendict issue, but can change that if needed

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32958028 | 📁 Comparing 091478e against main (f7e0fb6)

  🔍 Preview build  

1 file changed
± reference/compound_stmts.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant