From 4401f23cbf67f286649aebc12633fe3f46ada0d1 Mon Sep 17 00:00:00 2001 From: Pieter Eendebak Date: Thu, 26 Feb 2026 17:00:22 +0100 Subject: [PATCH] gh-141510: Update `PyDict_Copy` documentation with note on `frozendict` (GH-145249) --- Doc/c-api/dict.rst | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.47.3