https://github.com/python/cpython/commit/3b1f6eef837c2e4ab364aed12f23bbc12b513a6d commit: 3b1f6eef837c2e4ab364aed12f23bbc12b513a6d branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-06-30T09:16:59Z summary:
[3.15] gh-133510: Add links to more info for the match statement in FAQ anwser (GH-133511) (#152656) (cherry picked from commit 77181570da2d6d8f7bfca39f438ef0a893a30567) Co-authored-by: xzkdeng <[email protected]> Co-authored-by: sobolevn <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/faq/design.rst diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst index ac0aa81e56bb07a..c914089e9806ec6 100644 --- a/Doc/faq/design.rst +++ b/Doc/faq/design.rst @@ -263,6 +263,8 @@ 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. +See :ref:`the specification <match>` and :ref:`the tutorial <tut-match>` +for more information about :keyword:`match` statements. An older alternative is a sequence of ``if... elif... elif... else``. For cases where you need to choose from a very large number of possibilities, _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
