summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorAlex <637714+alexchandel@users.noreply.github.com>2019-11-22 13:48:14 (GMT)
committerVictor Stinner <vstinner@python.org>2019-11-22 13:48:14 (GMT)
commit4e205b74f91400c0e6810e79370a99e29a28d599 (patch)
tree42529a4053a3c9d0e10c1e6ff1759c18464f4ecd /Doc/c-api
parent138e7bbb0a5ed44bdd54605e8c58c8f3d3865321 (diff)
downloadcpython-4e205b74f91400c0e6810e79370a99e29a28d599.zip
cpython-4e205b74f91400c0e6810e79370a99e29a28d599.tar.gz
cpython-4e205b74f91400c0e6810e79370a99e29a28d599.tar.bz2
Fix quoted signature of setattrofunc (GH-17251)
setattrofunc returns `int`, not `PyObject *`.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/typeobj.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index b4ffd6b..7b205c0 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -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