Skip to content

Misc improvements to the itertools docs - #104916

Merged
rhettinger merged 3 commits into
python:mainfrom
rhettinger:itertool_doc_tweaks
May 25, 2023
Merged

rhettinger merged 3 commits into
python:mainfrom
rhettinger:itertool_doc_tweaks

Conversation

@rhettinger

@rhettinger rhettinger commented May 25, 2023 •

Copy link
Copy Markdown
Contributor
  • 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 merged commit 278030a into python:main May 25, 2023
@miss-islington

Copy link
Copy Markdown
Contributor

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

@bedevere-bot

Copy link
Copy Markdown

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 only 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

3 participants