mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Fix quoted signature of setattrofunc (GH-17251)
setattrofunc returns `int`, not `PyObject *`.
This commit is contained in:
parent
138e7bbb0a
commit
4e205b74f9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue