summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2020-03-17 08:19:28 (GMT)
committerGitHub <noreply@github.com>2020-03-17 08:19:28 (GMT)
commita45b695b9fcfbbb0a087222abc5c8d691a7d2770 (patch)
treecd06e92d2effe5931dff3b29060e274f41158a68 /Doc/c-api
parent58ec58a42bece5b2804b178c7a6a7e67328465db (diff)
downloadcpython-a45b695b9fcfbbb0a087222abc5c8d691a7d2770.zip
cpython-a45b695b9fcfbbb0a087222abc5c8d691a7d2770.tar.gz
cpython-a45b695b9fcfbbb0a087222abc5c8d691a7d2770.tar.bz2
bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)
PyObject_GenericSetDict() takes three arguments, not two.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/object.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index 2905fbb..b9c137e 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.