Skip to content

Conversation

@tshepang
Copy link

@tshepang tshepang commented Feb 10, 2025

#130153

_ branch is executed when no other branch matches


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

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting review labels Feb 10, 2025
Copy link

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to be. can you fix the the only failing check?

@tshepang tshepang changed the title doc: remove confusing statement dh-130153: remove confusing statement Feb 15, 2025
_ branch _is_ executed when no other branch matches
@tshepang tshepang changed the title dh-130153: remove confusing statement gh-130153: remove confusing statement Feb 15, 2025
@picnixz picnixz changed the title gh-130153: remove confusing statement gh-130153: remove confusing statement in match documentation Feb 15, 2025
languages like Rust or Haskell. Only the first pattern that matches
gets executed and it can also extract components (sequence elements
or object attributes) from the value into variables.
If no case matches, none of the branches is executed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can put this line as the line above:

gets executed and it can also extract components (sequence elements
or object attributes) from the value into variables. If no case matches,
none of the branches is executed.

@picnixz picnixz changed the title gh-130153: remove confusing statement in match documentation gh-130153: reword match paragraph in Doc/tutorial/controlflow.rst Feb 15, 2025
@picnixz picnixz requested a review from vstinner February 15, 2025 15:29
@brandtbucher brandtbucher merged commit 1b5db5a into python:main Mar 5, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Mar 5, 2025
@tshepang tshepang deleted the patch-1 branch March 6, 2025 08:11
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 news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants