-
-
Notifications
You must be signed in to change notification settings - Fork 32k
GH-96179: Fix misleading example on the bisect documentation #96228
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
Conversation
Ugh, forgot to set up the auto-sign commits for the repo (first contribution 😅 ). Is it worth amending and |
This minor issue does not need a NEWS entry. Could you remove that file? |
Sorted @encukou! |
Thanks @pedropregueiro for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Thank you, and welcome to Python development! |
…ythonGH-96228) The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960. (cherry picked from commit 4317b25) Co-authored-by: prego <[email protected]>
GH-96244 is a backport of this pull request to the 3.11 branch. |
…ythonGH-96228) The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960. (cherry picked from commit 4317b25) Co-authored-by: prego <[email protected]>
GH-96245 is a backport of this pull request to the 3.10 branch. |
The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960. (cherry picked from commit 4317b25) Co-authored-by: prego <[email protected]>
The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960. (cherry picked from commit 4317b25) Co-authored-by: prego <[email protected]>
…ythonGH-96228) The `movies[bisect(movies, 1960, key=by_year)]` will actually return only movies **after** 1960.
Fix minor issue with docs for bisect where example could mislead users:
The
movies[bisect(movies, 1960, key=by_year)]
will actually return only movies after 1960.