Skip to content

[python/en] Match/Case Statement #5314

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2025
Merged

Conversation

Athesto
Copy link
Contributor

@Athesto Athesto commented May 23, 2025

Include Match/Case Statement

  • I solemnly swear that this is all original content of which I am the original author
  • Pull request title is prepended with [language/lang-code] (example [python/fr] for Python in French or [java] for multiple Java translations)
  • Pull request touches only one file (or a set of logically related files with similar changes made)
  • Content changes are aimed at intermediate to experienced programmers (this is a poor format for explaining fundamental programming concepts)
  • If you've changed any part of the YAML Frontmatter, make sure it is formatted according to CONTRIBUTING.md

Athesto added 2 commits May 22, 2025 21:37
Include Match/Case Statement
include OR Pattern and Conditionals
Copy link
Contributor Author

@Athesto Athesto left a comment

Choose a reason for hiding this comment

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

there are more options like tuples, dicts sub-patterns but I want to do it step by step.

https://peps.python.org/pep-0636/#appendix-a-quick-intro

@vendethiel vendethiel merged commit 155fc5d into adambard:master May 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants