mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
James Henstridge pointed out a misleading comment.
This commit is contained in:
parent
1a54d71550
commit
3131679241
1 changed files with 6 additions and 10 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue