Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1475c49 commit 2ed6dffCopy full SHA for 2ed6dff
1 file changed
Doc/api/abstract.tex
@@ -310,7 +310,14 @@ \section{Object Protocol \label{object}}
310
\begin{cfuncdesc}{int}{PyObject_IsTrue}{PyObject *o}
311
Returns \code{1} if the object \var{o} is considered to be true, and
312
\code{0} otherwise. This is equivalent to the Python expression
313
- \samp{not not \var{o}}. This function always succeeds.
+ \samp{not not \var{o}}. On failure, return \code{-1}.
314
+\end{cfuncdesc}
315
+
316
317
+\begin{cfuncdesc}{int}{PyObject_Not}{PyObject *o}
318
+ Returns \code{0} if the object \var{o} is considered to be true, and
319
+ \code{1} otherwise. This is equivalent to the Python expression
320
+ \samp{not \var{o}}. On failure, return \code{-1}.
321
\end{cfuncdesc}
322
323
0 commit comments