bpo-39973: Fix the docs for PyObject_GenericSetDict() (GH-19026)

PyObject_GenericSetDict() takes three arguments, not two.
(cherry picked from commit a45b695b9f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-03-17 01:25:50 -07:00 committed by GitHub
parent 627e7bc1bb
commit 4e3a7f9205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -128,7 +128,7 @@ Object Protocol
.. versionadded:: 3.3 .. 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 A generic implementation for the setter of a ``__dict__`` descriptor. This
implementation does not allow the dictionary to be deleted. implementation does not allow the dictionary to be deleted.

View File

@ -1655,7 +1655,8 @@ PyObject_GenericSetAttr:PyObject*:name:0:
PyObject_GenericSetAttr:PyObject*:value:+1: PyObject_GenericSetAttr:PyObject*:value:+1:
PyObject_GenericSetDict:int::: PyObject_GenericSetDict:int:::
PyObject_GenericSetDict:PyObject*:o:+1: PyObject_GenericSetDict:PyObject*:o:0:
PyObject_GenericSetDict:PyObject*:value:+1:
PyObject_GenericSetDict:void*:context:: PyObject_GenericSetDict:void*:context::
PyObject_GetAttr:PyObject*::+1: PyObject_GetAttr:PyObject*::+1: