]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
As discussed on python-dev, revised docs to note that
authorRaymond Hettinger <python@rcn.com>
Wed, 16 Apr 2003 17:30:15 +0000 (17:30 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 16 Apr 2003 17:30:15 +0000 (17:30 +0000)
PyObject_IsTrue() can have an error result.

Also, added missing docs for PyObject_Not().

Doc/api/abstract.tex

index ee26a27eae9adeb476c62ca2f65a720f44a6cc79..5d9491099a3116884e472833988eca72b89433fc 100644 (file)
@@ -289,7 +289,14 @@ determination.
 \begin{cfuncdesc}{int}{PyObject_IsTrue}{PyObject *o}
   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.
+  \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}