From: Zackery Spytz Date: Tue, 17 Mar 2020 08:19:28 +0000 (-0600) Subject: bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026) X-Git-Tag: v3.9.0a5~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a45b695b9fcfbbb0a087222abc5c8d691a7d2770;p=thirdparty%2FPython%2Fcpython.git bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026) PyObject_GenericSetDict() takes three arguments, not two. --- diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst index 2905fbbd0f70..b9c137ea352e 100644 --- a/Doc/c-api/object.rst +++ b/Doc/c-api/object.rst @@ -128,7 +128,7 @@ Object Protocol .. versionadded:: 3.3 -.. c:function:: int PyObject_GenericSetDict(PyObject *o, void *context) +.. c:function:: int PyObject_GenericSetDict(PyObject *o, PyObject *value, void *context) A generic implementation for the setter of a ``__dict__`` descriptor. This implementation does not allow the dictionary to be deleted. diff --git a/Doc/data/refcounts.dat b/Doc/data/refcounts.dat index b55e972d536f..4dacbe201d22 100644 --- a/Doc/data/refcounts.dat +++ b/Doc/data/refcounts.dat @@ -1673,7 +1673,8 @@ PyObject_GenericSetAttr:PyObject*:name:0: PyObject_GenericSetAttr:PyObject*:value:+1: PyObject_GenericSetDict:int::: -PyObject_GenericSetDict:PyObject*:o:+1: +PyObject_GenericSetDict:PyObject*:o:0: +PyObject_GenericSetDict:PyObject*:value:+1: PyObject_GenericSetDict:void*:context:: PyObject_GetAttr:PyObject*::+1: