]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-133510: Add links to more info for the match statement in FAQ anwser (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 30 Jun 2026 09:16:51 +0000 (11:16 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2026 09:16:51 +0000 (09:16 +0000)
(cherry picked from commit 77181570da2d6d8f7bfca39f438ef0a893a30567)

Co-authored-by: xzkdeng <xzkdeng@gmail.com>
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 73c670b0a138c2bf35719b329b7a282519f5d7a4..3872a9ab9364f99a55f2a59fcb97c0e190863ffb 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,