[Python-checkins] python/dist/src/Doc/api abstract.tex,1.25,1.26
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Wed, 16 Apr 2003 10:28:21 -0700
Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1:/tmp/cvs-serv30151
Modified Files:
abstract.tex
Log Message:
As discussed on python-dev, revised docs to note that
PyObject_IsTrue() can have an error result.
Also, added missing docs for PyObject_Not().
Will backport.
Index: abstract.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/abstract.tex,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** abstract.tex 9 Apr 2003 18:15:57 -0000 1.25
--- abstract.tex 16 Apr 2003 17:28:12 -0000 1.26
***************
*** 311,315 ****
Returns \code{1} if the object \var{o} is considered to be true, and
\code{0} otherwise. This is equivalent to the Python expression
! \samp{not not \var{o}}. This function always succeeds.
\end{cfuncdesc}
--- 311,322 ----
Returns \code{1} if the object \var{o} is considered to be true, and
\code{0} otherwise. This is equivalent to the Python expression
! \samp{not not \var{o}}. On failure, return \code{-1}.
! \end{cfuncdesc}
!
!
! \begin{cfuncdesc}{int}{PyObject_Not}{PyObject *o}
! Returns \code{0} if the object \var{o} is considered to be true, and
! \code{1} otherwise. This is equivalent to the Python expression
! \samp{not \var{o}}. On failure, return \code{-1}.
\end{cfuncdesc}