]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 17 Mar 2020 08:25:34 +0000 (01:25 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 08:25:34 +0000 (01:25 -0700)
PyObject_GenericSetDict() takes three arguments, not two.
(cherry picked from commit a45b695b9fcfbbb0a087222abc5c8d691a7d2770)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/c-api/object.rst
Doc/data/refcounts.dat

index db815ae288b8699ff8fd1536508a264e1551c88f..3bdc0f56eb251548663bc88518b0e2cad8f5f31d 100644 (file)
@@ -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.
index cfed1bd503118e607433fa1e775458edef292ef8..3ccc20b70c62e6509180951e1264d6248f1b7de9 100644 (file)
@@ -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: