From: Andrew MacIntyre Date: Fri, 26 Dec 2003 00:00:29 +0000 (+0000) Subject: backport of concrete.tex v1.35: X-Git-Tag: 2.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775499689ebda242c43000b85969046f64bfc6fc;p=thirdparty%2FPython%2Fcpython.git backport of concrete.tex v1.35: The semantics of PyList_Check() and PyDict_Check() changed at 2.2, along with most other concrete object checks, but the docs weren't brought into line. PyList_CheckExact() was added at 2.2 but never documented. --- diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index 7802e0bbda2b..de3715ececd0 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -1602,7 +1602,15 @@ format. \end{cvardesc} \begin{cfuncdesc}{int}{PyList_Check}{PyObject *p} - Returns true if its argument is a \ctype{PyListObject}. + Returns true if \var{p} is a list object or an instance of a + subtype of the list type. + \versionchanged[Allowed subtypes to be accepted]{2.2} +\end{cfuncdesc} + +\begin{cfuncdesc}{int}{PyList_CheckExact}{PyObject *p} + Return true if \var{p} is a list object, but not an instance of a + subtype of the list type. + \versionadded{2.2} \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyList_New}{int len} @@ -1720,7 +1728,9 @@ format. \end{cvardesc} \begin{cfuncdesc}{int}{PyDict_Check}{PyObject *p} - Returns true if its argument is a \ctype{PyDictObject}. + Returns true if \var{p} is a dict object or an instance of a + subtype of the dict type. + \versionchanged[Allowed subtypes to be accepted]{2.2} \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyDict_New}{}