New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-46732: fix __bool__ docstring #31301
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no preference between Return True if self else False
versus Return bool(self)
, but either way this is a clear improvement over the existing docstring, so it LGTM.
I think these docstrings (like After discussing counter-proposals, I’m +1 too for the |
Thanks @merwok! Planning to merge this in a few days since there are multiple approvals and the change is low-risk (cc @gvanrossum). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read the discussion and I agree that this is the best wording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
When you're done making the requested changes, leave the comment: |
I have made the requested changes; please review again Well, not exactly, but the requested changes would be either incorrect or inconsistent with other similar docstrings. I'd be OK with making the docstring |
Thanks for making the requested changes! @gvanrossum, @terryjreedy, @merwok, @sweeneyde: please review the changes made to this pull request. |
The kind of change I would like is not sensibly possible.
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
GH-31473 is a backport of this pull request to the 3.10 branch. |
GH-31474 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit 0a222db) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 0a222db) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Thanks everyone for the reviews and feedback! |
) (cherry picked from commit 0a222db) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
https://bugs.python.org/issue46732