Add explanation for PyBool_Check func in bool.rst#140536
Add explanation for PyBool_Check func in bool.rst#140536F18-Maverick wants to merge 1 commit intopython:mainfrom
PyBool_Check func in bool.rst#140536Conversation
PyBool_Check func in bool.rst
|
Please don't add |
Okay, I'm so sory. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
I don't think this is useful. We already say "return true", which usually implies that the opposite is "return false".
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
|
||
| Return true if *o* is of type :c:data:`PyBool_Type`. This function always | ||
| succeeds. | ||
| succeeds and always returns a valid boolean value. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Yes, maybe your true, It's truely unnecessary. Sory about that, I'll close the PR soon.
📚 Documentation preview 📚: https://cpython-previews--140536.org.readthedocs.build/