GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Docs: for for/else clarify that return or raise also skip the else by nedbat · Pull Request #124591 · python/cpython

Conversation

@nedbat

@nedbat nedbat commented Sep 26, 2024 •
edited by github-actions Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

A clarification requested by @terryjreedy


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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nedbat
Docs: for for/else clarify that return or raise also skip the else
8bd7917
@bedevere-app bedevere-app Bot added awaiting core review docs Documentation in the Doc dir skip news labels Sep 26, 2024
@nedbat nedbat mentioned this pull request Sep 26, 2024
For-else deserves its own section in the tutorial #123946
Merged
@nedbat nedbat added skip issue needs backport to 3.12 only security fixes needs backport to 3.13 only security fixes labels Sep 26, 2024
JelleZijlstra
JelleZijlstra reviewed Sep 26, 2024
View reviewed changes
Comment thread Doc/tutorial/controlflow.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@nedbat @JelleZijlstra
Update Doc/tutorial/controlflow.rst
b43e341
Co-authored-by: Jelle Zijlstra <[email protected]>
JelleZijlstra
JelleZijlstra approved these changes Sep 26, 2024
View reviewed changes
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Sep 26, 2024
terryjreedy
terryjreedy approved these changes Sep 27, 2024
View reviewed changes
@nedbat
nedbat merged commit 5329d1b into python:main Sep 27, 2024
@miss-islington-app

miss-islington-app Bot commented Sep 27, 2024

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 27, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 27, 2024
@nedbat @JelleZijlstra @miss-islington
Docs: for for/else clarify that return or raise also skip the else (p…
bdf5f97
…ythonGH-124591)

(cherry picked from commit 5329d1b)

Co-authored-by: Ned Batchelder <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
@bedevere-app

bedevere-app Bot commented Sep 27, 2024

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 27, 2024
@nedbat @JelleZijlstra @miss-islington
Docs: for for/else clarify that return or raise also skip the else (p…
da43af2
…ythonGH-124591)

(cherry picked from commit 5329d1b)

Co-authored-by: Ned Batchelder <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 27, 2024
@bedevere-app

bedevere-app Bot commented Sep 27, 2024

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Sep 27, 2024
@nedbat
nedbat deleted the nedbat/more-for-else branch September 27, 2024 10:17
Yhg1s pushed a commit that referenced this pull request Sep 27, 2024
@miss-islington @nedbat @JelleZijlstra
[3.13] Docs: for for/else clarify that return or raise also skip the …
ac3e6f8
…else (GH-124591) (#124659)

Docs: for for/else clarify that return or raise also skip the else (GH-124591)

(cherry picked from commit 5329d1b)

Co-authored-by: Ned Batchelder <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
Yhg1s pushed a commit that referenced this pull request Sep 30, 2024
@miss-islington @nedbat @JelleZijlstra
[3.12] Docs: for for/else clarify that return or raise also skip the …
7c39f74
…else (GH-124591) (#124660)

Docs: for for/else clarify that return or raise also skip the else (GH-124591)

(cherry picked from commit 5329d1b)

Co-authored-by: Ned Batchelder <[email protected]>
Co-authored-by: Jelle Zijlstra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JelleZijlstra JelleZijlstra JelleZijlstra approved these changes
@terryjreedy terryjreedy terryjreedy approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@nedbat @JelleZijlstra @terryjreedy
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.