From: Pieter Eendebak Date: Thu, 26 Feb 2026 16:00:22 +0000 (+0100) Subject: gh-141510: Update `PyDict_Copy` documentation with note on `frozendict` (GH-145249) X-Git-Tag: v3.15.0a7~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4401f23cbf67f286649aebc12633fe3f46ada0d1;p=thirdparty%2FPython%2Fcpython.git gh-141510: Update `PyDict_Copy` documentation with note on `frozendict` (GH-145249) --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 1d74140ea360..734462bc0051 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)