Skip to content

Commit 7c4fcb6

Browse files
matrixisemiss-islington
authored andcommitted
Add the meaning of the returned value of PyTypeObject.tp_init (GH-12325)
1 parent e3f4070 commit 7c4fcb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/c-api/typeobj.rst

+2
Original file line numberDiff line numberDiff line change
@@ -1558,6 +1558,8 @@ and :c:type:`PyType_Type` effectively act as defaults.)
15581558
:c:member:`~PyTypeObject.tp_init` function is called; if :c:member:`~PyTypeObject.tp_new` returns an instance of a
15591559
subtype of the original type, the subtype's :c:member:`~PyTypeObject.tp_init` is called.
15601560

1561+
Returns ``0`` on success, ``-1`` and sets an exception on error.
1562+
15611563
**Inheritance:**
15621564

15631565
This field is inherited by subtypes.

0 commit comments

Comments
 (0)