]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133510: Add links to more info for the match statement in FAQ anwser (#133511)
authorxzkdeng <xzkdeng@gmail.com>
Tue, 30 Jun 2026 09:08:39 +0000 (17:08 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2026 09:08:39 +0000 (11:08 +0200)
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Doc/faq/design.rst

index ac0aa81e56bb07a56a4af64af567e3994f0ee394..c914089e9806ec652ab845a4574bb0f2905d398a 100644 (file)
@@ -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,