Skip to content

gh-141510 Update mapping methods in abstract.c to accept frozendict#150692

Open
da-woods wants to merge 3 commits into
python:mainfrom
da-woods:patch-4
Open

gh-141510 Update mapping methods in abstract.c to accept frozendict#150692
da-woods wants to merge 3 commits into
python:mainfrom
da-woods:patch-4

Conversation

@da-woods

@da-woods da-woods commented May 31, 2026

Copy link
Copy Markdown
Contributor

... as well as dict.

Specifically PyMapping_GetOptionalItem, PyMapping_Keys, PyMapping_Values and PyMapping_Items.

…dict

Specifically `PyMapping_GetOptionalItem`, `PyMapping_Keys`, `PyMapping_Values` and `PyMapping_Items`.
@da-woods

da-woods commented May 31, 2026

Copy link
Copy Markdown
Contributor Author

I think this is probably OK to attach to the "frozendict" implementation issue, but I can change it if not

(Edit: although I originally linked it to a previous proposal...)

@da-woods da-woods changed the title gh-58370 Update mapping methods in abstract.c to accept frozendict gh-141510 Update mapping methods in abstract.c to accept frozendict Jun 4, 2026

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update test_mapping_keys_valuesitems() of Lib/test/test_capi/test_abstract.py to test frozendict.

Sadly, PyMapping_GetOptionalItem() doesn't seem to be tested by test_capi so far. But that can be done in another PR.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants