Skip to content

gh-102105 Fix wording in filterfalse/quantify/filter #102189

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

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

pochmann
Copy link
Contributor

@pochmann pochmann commented Feb 23, 2023

@@ -398,7 +398,7 @@ loops that truncate the stream.
.. function:: filterfalse(predicate, iterable)

Make an iterator that filters elements from iterable returning only those for
which the predicate is ``False``. If *predicate* is ``None``, return the items
which the predicate is false. If *predicate* is ``None``, return the items
Copy link
Contributor

Choose a reason for hiding this comment

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

False is also correct here; this change seems to be pedantic churn only, and has no real value, IMO. I'd keep the current text. The following sentence uses None; I don't see any reason not to use False here. I'd consider leaving this as it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, False explicitly means the Python object False, no other false objects. So that's incorrect here. The None case is different.

@rhettinger rhettinger self-assigned this Feb 24, 2023
@rhettinger rhettinger added the needs backport to 3.11 only security fixes label Feb 24, 2023
@rhettinger rhettinger merged commit 81bf10e into python:main Feb 24, 2023
@miss-islington
Copy link
Contributor

Thanks @pochmann for the PR, and @rhettinger for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-102219 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 24, 2023
@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Feb 24, 2023
@pochmann pochmann deleted the patch-2 branch February 24, 2023 16:14
miss-islington added a commit that referenced this pull request Feb 24, 2023
(cherry picked from commit 81bf10e)

Co-authored-by: Stefan Pochmann <[email protected]>
JelleZijlstra pushed a commit to JelleZijlstra/cpython that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants