]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport of concrete.tex v1.35:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Fri, 20 Feb 2004 11:58:27 +0000 (11:58 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Fri, 20 Feb 2004 11:58:27 +0000 (11:58 +0000)
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.

Doc/api/concrete.tex

index 1a25196153878af1a57d4aaf53d7444c58680298..2c9a5853bc7dd6ed0e4299a9de5c7ed484aeb69b 100644 (file)
@@ -1658,7 +1658,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}
@@ -1778,7 +1786,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}{}