Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Misc improvements to the itertools docs#119040

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
rhettinger merged 7 commits intopython:mainfromrhettinger:further_recipe_cleanups
May 14, 2024

Conversation

rhettinger
Copy link
Contributor

@rhettingerrhettinger commentedMay 14, 2024
edited by github-actionsbot
Loading

  • Replace variableit with the spelled-outiterator in the rough code equivalents
  • Useyield from instead of an equivalent for-loop
  • More accurate tee() equivalent that uses only a single shared data store
  • Usecontextlib.suppress() instead of equivalenttry/except. (Suggested by Pochmann).

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

@rhettingerrhettinger merged commit7a97ee5 intopython:mainMay 14, 2024
@rhettingerrhettinger deleted the further_recipe_cleanups branchMay 14, 2024 15:18
@rhettingerrhettinger added needs backport to 3.12only security fixes needs backport to 3.13bugs and security fixes labelsMay 14, 2024
@miss-islington-app
Copy link

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

@miss-islington-app
Copy link

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 requestMay 14, 2024
(cherry picked from commit7a97ee5)Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestMay 14, 2024
(cherry picked from commit7a97ee5)Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-app
Copy link

GH-119044 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelMay 14, 2024
@bedevere-app
Copy link

GH-119045 is a backport of this pull request to the3.13 branch.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
docsDocumentation in the Doc dirskip issueskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@rhettinger

[8]ページ先頭

©2009-2025 Movatter.jp