Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ae7839

Browse files
committed
merge with 3.4
2 parents c53bc48 + a920b6d commit 4ae7839

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/c-api/type.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Type Objects
4444
4545
.. versionadded:: 3.2
4646
47+
4748
.. c:function:: void PyType_Modified(PyTypeObject *type)
4849
4950
Invalidate the internal lookup cache for the type and all of its
@@ -67,6 +68,11 @@ Type Objects
6768
6869
Return true if *a* is a subtype of *b*.
6970
71+
This function only checks for actual subtypes, which means that
72+
:meth:`~type.__subclasscheck__` is not called on *b*. Call
73+
:c:func:`PyObject_IsSubclass` to do the same check that :func:`issubclass`
74+
would do.
75+
7076
7177
.. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
7278

0 commit comments

Comments
 (0)