mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Add the meaning of the returned value of PyTypeObject.tp_init (GH-12325)
This commit is contained in:
parent
e3f4070aee
commit
7c4fcb6b05
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue