Fix quoted signature of setattrofunc (GH-17251)

setattrofunc returns `int`, not `PyObject *`.
This commit is contained in:
Alex 2019-11-22 07:48:14 -06:00 committed by Victor Stinner
parent 138e7bbb0a
commit 4e205b74f9

View file

@ -955,7 +955,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
The signature is the same as for :c:func:`PyObject_SetAttr`::
PyObject *tp_setattro(PyObject *self, PyObject *attr, PyObject *value);
int tp_setattro(PyObject *self, PyObject *attr, PyObject *value);
In addition, setting *value* to ``NULL`` to delete an attribute must be
supported. It is usually convenient to set this field to