]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141510: Update `PyDict_Copy` documentation with note on `frozendict` (GH-145249)
authorPieter Eendebak <pieter.eendebak@gmail.com>
Thu, 26 Feb 2026 16:00:22 +0000 (17:00 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Feb 2026 16:00:22 +0000 (11:00 -0500)
Doc/c-api/dict.rst

index 1d74140ea360bab7b75689d43d868f5262f72596..734462bc0051af552b5efa0d3d3926a0539dce99 100644 (file)
@@ -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)