summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-04-10 17:52:52 (GMT)
committerFred Drake <fdrake@acm.org>2002-04-10 17:52:52 (GMT)
commite3c764b6c288ff546e8b1c3513044c63558aad8b (patch)
treecd332af953abeef8f65ba8cac8fd991942fc64a8 /Doc/api
parentce0b664af2b40c71a094b16d33b8310ff749f9df (diff)
downloadcpython-e3c764b6c288ff546e8b1c3513044c63558aad8b.zip
cpython-e3c764b6c288ff546e8b1c3513044c63558aad8b.tar.gz
cpython-e3c764b6c288ff546e8b1c3513044c63558aad8b.tar.bz2
Document PyType_CheckExact(), PyType_IS_GC().
Update description of PyType_Check().
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex17
1 files changed, 16 insertions, 1 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index 50405ff..fd8ac4a 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -36,7 +36,16 @@ This section describes Python type objects and the singleton object
\end{cvardesc}
\begin{cfuncdesc}{int}{PyType_Check}{PyObject *o}
- Returns true is the object \var{o} is a type object.
+ Returns true if the object \var{o} is a type object, including
+ instances of types derived from the standard type object. Returns
+ false in all other cases.
+\end{cfuncdesc}
+
+\begin{cfuncdesc}{int}{PyType_CheckExact}{PyObject *o}
+ Returns true if the object \var{o} is a type object, but not a
+ subtype of the standard type object. Returns false in all other
+ cases.
+ \versionadded{2.2}
\end{cfuncdesc}
\begin{cfuncdesc}{int}{PyType_HasFeature}{PyObject *o, int feature}
@@ -44,6 +53,12 @@ This section describes Python type objects and the singleton object
\var{feature}. Type features are denoted by single bit flags.
\end{cfuncdesc}
+\begin{cfuncdesc}{int}{PyType_IS_GC}{PyObject *o}
+ Return true if the type object includes support for the cycle
+ detector; this tests the type flag \constant{Py_TPFLAGS_HAVE_GC}.
+ \versionadded{2.0}
+\end{cfuncdesc}
+
\begin{cfuncdesc}{int}{PyType_IsSubtype}{PyTypeObject *a, PyTypeObject *b}
Returns true if \var{a} is a subtype of \var{b}.
\versionadded{2.2}