summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-06 12:15:13 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-06 12:15:13 (GMT)
commit4ae7839e19f7a36ceff76a92fb23f7bc9ba0d55f (patch)
treec05cb2238750952d166400864767848cfb4677a2 /Doc/c-api
parentc53bc48068cef0ef5a05488c4164ed65b669fcf6 (diff)
parenta920b6d76251068281d3f44b7978bda4658bc986 (diff)
downloadcpython-4ae7839e19f7a36ceff76a92fb23f7bc9ba0d55f.zip
cpython-4ae7839e19f7a36ceff76a92fb23f7bc9ba0d55f.tar.gz
cpython-4ae7839e19f7a36ceff76a92fb23f7bc9ba0d55f.tar.bz2
merge with 3.4
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 8dc040b..343437d 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -44,6 +44,7 @@ Type Objects
.. versionadded:: 3.2
+
.. c:function:: void PyType_Modified(PyTypeObject *type)
Invalidate the internal lookup cache for the type and all of its
@@ -67,6 +68,11 @@ Type Objects
Return true if *a* is a subtype of *b*.
+ 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)