Commit 31316792 authored by Michael W. Hudson's avatar Michael W. Hudson

James Henstridge pointed out a misleading comment.

parent 1a54d715
...@@ -384,24 +384,20 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ ...@@ -384,24 +384,20 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
int PyObject_IsTrue(PyObject *o); int PyObject_IsTrue(PyObject *o);
Returns 1 if the object, o, is considered to be true, and Returns 1 if the object, o, is considered to be true, 0 if o is
0 otherwise. This is equivalent to the Python expression: considered to be false and -1 on failure. This is equivalent to the
not not o Python expression: not not o
This function always succeeds.
*/ */
/* Implemented elsewhere: /* Implemented elsewhere:
int PyObject_Not(PyObject *o); int PyObject_Not(PyObject *o);
Returns 0 if the object, o, is considered to be true, and Returns 0 if the object, o, is considered to be true, 1 if o is
1 otherwise. This is equivalent to the Python expression: considered to be false and -1 on failure. This is equivalent to the
not o Python expression: not o
This function always succeeds.
*/ */
PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o); PyAPI_FUNC(PyObject *) PyObject_Type(PyObject *o);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment