-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Misc improvements to the itertools docs #125147
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
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.
Looks good. Thanks @rhettinger.
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, @rhettinger, I could not cleanly backport this to
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
(cherry picked from commit b2a7272) Co-authored-by: Raymond Hettinger <[email protected]>
GH-125149 is a backport of this pull request to the 3.13 branch. |
Visible changes:
partitions()
recipe which did not follow the documented advice: "In general, if one iterator uses most or all of the data before another iterator starts, it is faster to use list() instead of tee()."Non-visible changes:
repeatfunc()
tests to one place.📚 Documentation preview 📚: https://cpython-previews--125147.org.readthedocs.build/