PEP 590: no longer mention tp_descr_set (#1041)

This commit is contained in:
Jeroen Demeyer 2019-05-11 14:31:02 +02:00 committed by Mark Shannon
parent 3f0a21ebe0
commit 58b713c4ef
1 changed files with 1 additions and 2 deletions

View File

@ -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).