PEP 590: no longer mention tp_descr_set (#1041)
This commit is contained in:
parent
3f0a21ebe0
commit
58b713c4ef
|
@ -164,8 +164,7 @@ Extension types inherit the type flag ``Py_TPFLAGS_HAVE_VECTORCALL``
|
|||
and the value ``tp_vectorcall_offset`` from the base class,
|
||||
provided that they implement ``tp_call`` the same way as the base class.
|
||||
Additionally, the flag ``Py_TPFLAGS_METHOD_DESCRIPTOR``
|
||||
is inherited if ``tp_descr_get`` and ``tp_descr_set`` are implemented the
|
||||
same way as the base class.
|
||||
is inherited if ``tp_descr_get`` is implemented the same way as the base class.
|
||||
|
||||
Heap types never inherit the vectorcall protocol because
|
||||
that would not be safe (heap types can be changed dynamically).
|
||||
|
|
Loading…
Reference in New Issue