summaryrefslogtreecommitdiff
path: root/Include/abstract.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-09 17:53:59 +0000
committerGuido van Rossum <guido@python.org>1998-04-09 17:53:59 +0000
commitc3d3f9692d2ac91d064681621240121a9407501d (patch)
treef23fa0faa71d06d51d7b6346a4de84b4c5f4f9e7 /Include/abstract.h
parent6b529ae0c0751810f2a96d7a2afdde639af4d030 (diff)
downloadcpython-git-c3d3f9692d2ac91d064681621240121a9407501d.tar.gz
Add PyObject_Not().
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 975c562280..3491724e31 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -382,6 +382,18 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
*/
+ /* Implemented elsewhere:
+
+ int PyObject_Not(PyObject *o);
+
+ Returns 0 if the object, o, is considered to be true, and
+ 1 otherwise. This is equivalent to the Python expression:
+ not o
+
+ This function always succeeds.
+
+ */
+
PyObject *PyObject_Type Py_PROTO((PyObject *o));
/*