Skip to content
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

Misc improvements to the itertools docs #104916

Merged
merged 3 commits into from
May 25, 2023

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented May 25, 2023

  • Update the accumulate example to show the initial parameter, demonstrate use of repeat, and clean-up the output with round()
  • Note that lru_cache can be used with partition.
  • Add polynomial_derivative to demonstrate map with operator.mul.

📚 Documentation preview 📚: https://cpython-previews--104916.org.readthedocs.build/

@rhettinger rhettinger added docs Documentation in the Doc dir skip issue skip news needs backport to 3.12 bug and security fixes labels May 25, 2023
@rhettinger rhettinger merged commit 278030a into python:main May 25, 2023
@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-104917 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 25, 2023
(cherry picked from commit 278030a)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-bot bedevere-bot removed the needs backport to 3.12 bug and security fixes label May 25, 2023
@rhettinger rhettinger deleted the itertool_doc_tweaks branch May 25, 2023 03:32
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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants