Skip to content

Commit 5d14d2b

Browse files
Apply Peter's suggestion
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 8f0672b commit 5d14d2b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Doc/c-api/type.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ Type Objects
138138
Return non-zero if the type object *type* sets the subclass flag *flag*.
139139
Subclass flags are denoted by
140140
:c:macro:`Py_TPFLAGS_*_SUBCLASS <Py_TPFLAGS_LONG_SUBCLASS>`.
141-
This function is used by most ``_Check`` functions.
141+
This function is used by many ``_Check`` functions for common types.
142+
143+
.. seealso::
144+
:c:func:`PyObject_TypeCheck`, which is used as a slower alternative in
145+
``_Check`` functions for types that don't come with subclass flags.
142146
143147
144148
.. c:function:: int PyType_IS_GC(PyTypeObject *o)

0 commit comments

Comments
 (0)