]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)
authorZackery Spytz <zspytz@gmail.com>
Tue, 17 Mar 2020 08:19:28 +0000 (02:19 -0600)
committerGitHub <noreply@github.com>
Tue, 17 Mar 2020 08:19:28 +0000 (10:19 +0200)
PyObject_GenericSetDict() takes three arguments, not two.

Doc/c-api/object.rst
Doc/data/refcounts.dat

index 2905fbbd0f70c3f97bedb060e3fdfe9620ca1b42..b9c137ea352e78e5c21b5a280d0b1217a3cbed38 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 b55e972d536fe25c4725399fa3f0a01b4b87c846..4dacbe201d22a5bd079e4c605df67ffe0d6c00bb 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: