diff options
author | Michael W. Hudson <mwh@python.net> | 2002-11-25 15:06:29 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-11-25 15:06:29 (GMT) |
commit | 313167924115e8675d1864851f786749a3a105b9 (patch) | |
tree | 2d3163cd9f0197c053c095992e56bf01d42c129b | |
parent | 1a54d715500a92b051770f9d0943f105be5bcc64 (diff) | |
download | cpython-313167924115e8675d1864851f786749a3a105b9.zip cpython-313167924115e8675d1864851f786749a3a105b9.tar.gz cpython-313167924115e8675d1864851f786749a3a105b9.tar.bz2 |
James Henstridge pointed out a misleading comment.
-rw-r--r-- | Include/abstract.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index 237e950..e3292ba 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -384,24 +384,20 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ int PyObject_IsTrue(PyObject *o); - Returns 1 if the object, o, is considered to be true, and - 0 otherwise. This is equivalent to the Python expression: - not not o + Returns 1 if the object, o, is considered to be true, 0 if o is + considered to be false and -1 on failure. This is equivalent to the + Python expression: not not o - This function always succeeds. - */ /* 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 + Returns 0 if the object, o, is considered to be true, 1 if o is + considered to be false and -1 on failure. This is equivalent to the + Python expression: not o - This function always succeeds. - */ PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o); |