Skip to content

Commit

Permalink
bpo-39973: Fix the docs for PyObject_GenericSetDict() (pythonGH-19026)
Browse files Browse the repository at this point in the history
PyObject_GenericSetDict() takes three arguments, not two.
  • Loading branch information
ZackerySpytz authored Mar 17, 2020
1 parent 58ec58a commit a45b695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/c-api/object.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion Doc/data/refcounts.dat
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a45b695

Please sign in to comment.