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)