diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-12-25 23:57:52 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2003-12-25 23:57:52 (GMT) |
commit | 13cd8898d24a0b062903c6a1995769e440726905 (patch) | |
tree | 61b2e2f9fc37547b9867dd61422e55281ce2df4b /Doc/api/concrete.tex | |
parent | d57caed52c478d1675a473f36508588ffc32e38b (diff) | |
download | cpython-13cd8898d24a0b062903c6a1995769e440726905.zip cpython-13cd8898d24a0b062903c6a1995769e440726905.tar.gz cpython-13cd8898d24a0b062903c6a1995769e440726905.tar.bz2 |
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.
backport candidate.
Diffstat (limited to 'Doc/api/concrete.tex')
-rw-r--r-- | Doc/api/concrete.tex | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index c233ed4..143c988 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -1670,7 +1670,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} @@ -1790,7 +1798,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}{} |