Commit b74cf54a authored by Georg Brandl's avatar Georg Brandl

Closes #22507: document that PyType_IsSubtype does not call __subclasscheck__.

parent 4a89fd9b
...@@ -71,6 +71,11 @@ Type Objects ...@@ -71,6 +71,11 @@ Type Objects
.. versionadded:: 2.2 .. versionadded:: 2.2
This function only checks for actual subtypes, which means that
:meth:`~type.__subclasscheck__` is not called on *b*. Call
:c:func:`PyObject_IsSubclass` to do the same check that :func:`issubclass`
would do.
.. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems) .. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment