]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Jun 2026 08:45:02 +0000 (10:45 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2026 08:45:02 +0000 (08:45 +0000)
commit7e368380f899c0b83b3b4b383371481021d9aabe
tree380d5468368545d14c7ad71fe3d6c940df55d0da
parent40fa04e6cc5797bcef80eceb10a2b48b11b27650
[3.15] gh-141510 Document and test frozendict class matching behaviour (GH-150799) (#151701)

gh-141510 Document and test frozendict class matching behaviour (GH-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 fd53ae113911e5a7d83c04b08623df824f9d5d70)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Doc/reference/compound_stmts.rst
Lib/test/test_patma.py