-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
gh-89509: Fix "truthy"/"falsy" in documentation #158663
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6747,13 +6747,13 @@ and :mod:`!tkinter.constants` namespaces. | |
| YES | ||
| ON | ||
|
|
||
| Truthy values, all equal to the integer ``1``. | ||
| True values, all equal to the integer ``1``. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even though
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here we could just drop the mention of boolean altogether and just say "All equal to 1", which is in fact the case. Python programmers will know that 1 is true.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That sentence describes |
||
|
|
||
| .. data:: FALSE | ||
| NO | ||
| OFF | ||
|
|
||
| Falsy values, all equal to the integer ``0``. | ||
| False values, all equal to the integer ``0``. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly here. |
||
|
|
||
| .. data:: N | ||
| S | ||
|
|
||
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.
In this particular context I would say:
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.
How about "Sentinel objects evaluate as true"?
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.
Still unnecessary and ugly, if not even wrong. "Are/is true" is how the documentation does it.