]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 14 Dec 2021 15:25:32 +0000 (07:25 -0800)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 15:25:32 +0000 (07:25 -0800)
commit503803d8c19be91becc09ca59f3febcbc324d6d2
tree2b39cf02d31b5ed4c2eab5345a0ca9213584a7b5
parentf84e2f6c0aca97c59ec8ce21715ae9bd89893307
bpo-46059: Clarify pattern-matching example in "control flow" docs (GH-30079)

The "Color" example in the pattern-matching section of the "control flow" documentation is not immediately runnable, leading to confusion.

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
(cherry picked from commit 1cbb88736c32ac30fd530371adf53fe7554be0a5)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/tutorial/controlflow.rst