Skip to content

Commit 3d6c291

Browse files
miss-islingtonxzkdengsobolevnAA-TurnerStanFromIreland
authored
[3.14] gh-133510: Add links to more info for the match statement in FAQ anwser (GH-133511) (#152655)
(cherry picked from commit 7718157) 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>
1 parent f71ce97 commit 3d6c291

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/faq/design.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ In general, structured switch statements execute one block of code
263263
when an expression has a particular value or set of values.
264264
Since Python 3.10 one can easily match literal values, or constants
265265
within a namespace, with a ``match ... case`` statement.
266+
See :ref:`the specification <match>` and :ref:`the tutorial <tut-match>`
267+
for more information about :keyword:`match` statements.
266268
An older alternative is a sequence of ``if... elif... elif... else``.
267269

268270
For cases where you need to choose from a very large number of possibilities,

0 commit comments

Comments
 (0)