summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorStéphane Wirtel <stephane@wirtel.be>2019-03-15 16:18:36 +0000
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-03-15 09:18:36 -0700
commit7c4fcb6b05792e94dd5f8aca032f01314248f5ac (patch)
treeb2681631ff3c673f7fce346f1376a81c1f352b80 /Doc
parente3f4070aee6f2d489416fdcafd51d6b04d661919 (diff)
downloadcpython-git-7c4fcb6b05792e94dd5f8aca032f01314248f5ac.tar.gz
Add the meaning of the returned value of PyTypeObject.tp_init (GH-12325)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/typeobj.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index 5615f59514..f36cfe551e 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -1558,6 +1558,8 @@ and :c:type:`PyType_Type` effectively act as defaults.)
:c:member:`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject.tp_new` returns an instance of a
subtype of the original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called.
+ Returns ``0`` on success, ``-1`` and sets an exception on error.
+
**Inheritance:**
This field is inherited by subtypes.