◐ Shell
clean mode source ↗

gh-141510: No longer accept frozendict in PyDict_Copy() by vstinner · Pull Request #145542 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@vstinner

@vstinner vstinner commented

Mar 5, 2026

edited by github-actions Bot

Loading

Copy link Copy Markdown

Member

Rename _PyDict_Copy() to anydict_copy().


📚 Documentation preview 📚: https://cpython-previews--145542.org.readthedocs.build/

Replace PyObject_IsInstance(op, &PyFrozenDict_Type) with
PyFrozenDict_Check().

@vstinner vstinner merged commit 0c29f83 into python:main

Mar 5, 2026

50 checks passed

@vstinner vstinner deleted the dict_copy3 branch

March 5, 2026 14:26

ljfp pushed a commit to ljfp/cpython that referenced this pull request

Apr 25, 2026
…#145542)

Rename _PyDict_Copy() to anydict_copy().

Replace PyObject_IsInstance(op, &PyFrozenDict_Type) with
PyFrozenDict_Check().

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

Reviewers

@methane methane Awaiting requested review from methane methane is a code owner

@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner

@ZeroIntensity ZeroIntensity Awaiting requested review from ZeroIntensity ZeroIntensity is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@vstinner