-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Better presentation order for recipes. #116755
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.
This is a bit more substantial change, let's also backport to 3.11, as it's more likely to cause merge conflicts in the future.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
The recipes have left 3.11 behind. I stopped updating them a good while ago. Only a bug fix would be backported. |
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
(cherry picked from commit 5ff012a) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Sorry, @rhettinger, I could not cleanly backport this to
|
GH-116757 is a backport of this pull request to the 3.12 branch. |
Move
justseen()
beforeeverseen()
so that it is more easily compared withall_equal()
which also usesgroupby()
. Also, it is simpler, has weaker input preconditions, and does not require auxiliary memory.Move
iter_index()
downward because it is more complex and gets interferes with the top to bottom reading flow.Also change the
polynomial_eval()
example to match the previouspolynomial_from_roots()
example.Minor updates to the intro text: Add another recipe to the "incubator list" and add a link for "functional style".
📚 Documentation preview 📚: https://cpython-previews--116755.org.readthedocs.build/