Skip to content

Commit 4e3a7f9

Browse files
bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)
PyObject_GenericSetDict() takes three arguments, not two. (cherry picked from commit a45b695) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 627e7bc commit 4e3a7f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/c-api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Object Protocol
128128
.. versionadded:: 3.3
129129
130130
131-
.. c:function:: int PyObject_GenericSetDict(PyObject *o, void *context)
131+
.. c:function:: int PyObject_GenericSetDict(PyObject *o, PyObject *value, void *context)
132132
133133
A generic implementation for the setter of a ``__dict__`` descriptor. This
134134
implementation does not allow the dictionary to be deleted.

Doc/data/refcounts.dat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,8 @@ PyObject_GenericSetAttr:PyObject*:name:0:
16551655
PyObject_GenericSetAttr:PyObject*:value:+1:
16561656

16571657
PyObject_GenericSetDict:int:::
1658-
PyObject_GenericSetDict:PyObject*:o:+1:
1658+
PyObject_GenericSetDict:PyObject*:o:0:
1659+
PyObject_GenericSetDict:PyObject*:value:+1:
16591660
PyObject_GenericSetDict:void*:context::
16601661

16611662
PyObject_GetAttr:PyObject*::+1:

0 commit comments

Comments
 (0)