@@ -710,7 +710,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
710710
711711 .. warning ::
712712
713- It is not recommended for :ref: `heap types <heap-types >` to implement
713+ It is not recommended for :ref: `mutable heap types <heap-types >` to implement
714714 the vectorcall protocol.
715715 When a user sets :attr: `__call__ ` in Python code, only *tp_call * is updated,
716716 likely making it inconsistent with the vectorcall function.
@@ -734,8 +734,9 @@ and :c:type:`PyType_Type` effectively act as defaults.)
734734 always inherited. If it's not, then the subclass won't use
735735 :ref: `vectorcall <vectorcall >`, except when
736736 :c:func: `PyVectorcall_Call ` is explicitly called.
737- This is in particular the case for :ref: `heap types <heap-types >`
738- (including subclasses defined in Python).
737+ This is in particular the case for types without the
738+ :const: `Py_TPFLAGS_IMMUTABLETYPE ` flag set (including subclasses defined in
739+ Python).
739740
740741
741742.. c :member :: getattrfunc PyTypeObject.tp_getattr
@@ -1125,9 +1126,9 @@ and :c:type:`PyType_Type` effectively act as defaults.)
11251126
11261127 **Inheritance: **
11271128
1128- This flag is never inherited by :ref: ` heap types < heap-types >`.
1129- For extension types, it is inherited whenever
1130- :c:member: `~PyTypeObject.tp_descr_get ` is inherited.
1129+ This flag is never inherited by types without the
1130+ :const: ` Py_TPFLAGS_IMMUTABLETYPE ` flag set. For extension types, it is
1131+ inherited whenever :c:member: `~PyTypeObject.tp_descr_get ` is inherited.
11311132
11321133
11331134 .. XXX Document more flags here?
@@ -1172,9 +1173,9 @@ and :c:type:`PyType_Type` effectively act as defaults.)
11721173
11731174 **Inheritance: **
11741175
1175- This bit is inherited for :ref: `static subtypes <static-types >` if
1176+ This bit is inherited for types with the
1177+ :const: `Py_TPFLAGS_IMMUTABLETYPE ` flag set, if
11761178 :c:member: `~PyTypeObject.tp_call ` is also inherited.
1177- :ref: `Heap types <heap-types >` do not inherit ``Py_TPFLAGS_HAVE_VECTORCALL ``.
11781179
11791180 .. versionadded :: 3.9
11801181
0 commit comments