From ba9c5659f0a61c492958e87a1d84ee821927bc41 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 10 Apr 2002 18:16:32 +0000 Subject: [PATCH] Document PyType_IS_GC(). Update description of PyType_Check(). --- Doc/api/api.tex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Doc/api/api.tex b/Doc/api/api.tex index c0173c7c65d4..2df59f5ee41b 100644 --- a/Doc/api/api.tex +++ b/Doc/api/api.tex @@ -2192,7 +2192,9 @@ This is the type object for type objects; it is the same object as \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_HasFeature}{PyObject *o, int feature} @@ -2200,6 +2202,12 @@ Returns true if the type object \var{o} sets the feature \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} + \subsection{The None Object \label{noneObject}} -- 2.47.3