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

gh-133510: Add links to more info for the match statement#133511

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

Open
xzkdeng wants to merge7 commits intopython:main
base:main
Choose a base branch
Loading
fromxzkdeng:main
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update Doc/faq/design.rst,by suggestion of sobolevn -1
Co-authored-by: sobolevn <mail@sobolevn.me>
  • Loading branch information
@xzkdeng@sobolevn
xzkdeng andsobolevn authoredMay 6, 2025
commit08674f43c9060b51177dfe13487e309fccd44562
2 changes: 1 addition & 1 deletionDoc/faq/design.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -262,7 +262,7 @@ Why isn't there a switch or case statement in Python?
In general, structured switch statements execute one block of code
when an expression has a particular value or set of values.
Since Python 3.10 one can easily match literal values, or constants
within a namespace, with a ``match ... case`` statement,like this::
within a namespace, with a ``match ... case`` statement,like this::

command="a"
match command:
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp