FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Misc improvements to the itertools docs by rhettinger · Pull Request #119040 · python/cpython · GitHub

/ cpython Public

Misc improvements to the itertools docs - #119040

Merged
rhettinger merged 7 commits into
python:mainfrom
rhettinger:further_recipe_cleanups
May 14, 2024
Merged

Misc improvements to the itertools docs#119040
rhettinger merged 7 commits into
python:mainfrom
rhettinger:further_recipe_cleanups

Conversation

rhettinger commented May 14, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Contributor
  • Replace variable it with the spelled-out iterator in the rough code equivalents
  • Use yield from instead of an equivalent for-loop
  • More accurate tee() equivalent that uses only a single shared data store
  • Use contextlib.suppress() instead of equivalent try/except. (Suggested by Pochmann).

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

rhettinger merged commit 7a97ee5 into python:main May 14, 2024
rhettinger deleted the further_recipe_cleanups branch May 14, 2024 15:18
rhettinger added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels May 14, 2024

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 14, 2024
(cherry picked from commit 7a97ee5)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 14, 2024
(cherry picked from commit 7a97ee5)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>

bedevere-app Bot commented May 14, 2024

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.12 only security fixes label May 14, 2024

bedevere-app Bot commented May 14, 2024

Copy link
Copy Markdown

GH-119045 is a backport of this pull request to the 3.13 branch.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL