https://github.com/python/cpython/commit/4401f23cbf67f286649aebc12633fe3f46ada0d1
commit: 4401f23cbf67f286649aebc12633fe3f46ada0d1
branch: main
author: Pieter Eendebak <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-02-26T11:00:22-05:00
summary:
gh-141510: Update `PyDict_Copy` documentation with note on `frozendict`
(GH-145249)
files:
M Doc/c-api/dict.rst
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index 1d74140ea360ba..734462bc0051af 100644
--- a/Doc/c-api/dict.rst
+++ b/Doc/c-api/dict.rst
@@ -82,6 +82,9 @@ Dictionary objects
Return a new dictionary that contains the same key-value pairs as *p*.
+ .. versionchanged:: next
+ If *p* is a subclass of :class:`frozendict`, the result will be a
+ :class:`frozendict` instance instead of a :class:`dict` instance.
.. c:function:: int PyDict_SetItem(PyObject *p, PyObject *key, PyObject *val)
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]