[Python-checkins] python/dist/src/Doc/api concrete.tex,1.34,1.35
aimacintyre at users.sourceforge.net
aimacintyre at users.sourceforge.net
Thu Dec 25 18:57:55 EST 2003
Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1:/tmp/cvs-serv20083
Modified Files:
concrete.tex
Log Message:
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.
Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** concrete.tex 13 Dec 2003 19:48:41 -0000 1.34
--- concrete.tex 25 Dec 2003 23:57:52 -0000 1.35
***************
*** 1671,1675 ****
\begin{cfuncdesc}{int}{PyList_Check}{PyObject *p}
! Returns true if its argument is a \ctype{PyListObject}.
\end{cfuncdesc}
--- 1671,1683 ----
\begin{cfuncdesc}{int}{PyList_Check}{PyObject *p}
! 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}
***************
*** 1791,1795 ****
\begin{cfuncdesc}{int}{PyDict_Check}{PyObject *p}
! Returns true if its argument is a \ctype{PyDictObject}.
\end{cfuncdesc}
--- 1799,1805 ----
\begin{cfuncdesc}{int}{PyDict_Check}{PyObject *p}
! 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}
More information about the Python-checkins
mailing list