From: xzkdeng Date: Tue, 30 Jun 2026 09:08:39 +0000 (+0800) Subject: gh-133510: Add links to more info for the match statement in FAQ anwser (#133511) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77181570da2d6d8f7bfca39f438ef0a893a30567;p=thirdparty%2FPython%2Fcpython.git gh-133510: Add links to more info for the match statement in FAQ anwser (#133511) Co-authored-by: sobolevn 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 --- diff --git a/Doc/faq/design.rst b/Doc/faq/design.rst index ac0aa81e56bb..c914089e9806 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 ` and :ref:`the tutorial ` +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,