Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/c-api/bool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ are available, however.
.. c:function:: int PyBool_Check(PyObject *o)

Return true if *o* is of type :c:data:`PyBool_Type`. This function always
succeeds.
succeeds and always returns a valid boolean value.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand why this comment is necessary, per the previous line, it always succeeds, therefore it returns an integer, which is a valid boolean value, it makes it redundant? Can you please elaborate as to why this is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, maybe your true, It's truely unnecessary. Sory about that, I'll close the PR soon.



.. c:var:: PyObject* Py_False
Expand Down
Loading