PEP 622: clarify 'list of patterns' reference

Fixes #1511
This commit is contained in:
Guido van Rossum 2020-07-09 15:02:38 -07:00
parent d56591331e
commit bf6e6ec5ba
1 changed files with 4 additions and 2 deletions

View File

@ -370,9 +370,11 @@ this section are there for helping the reader, not as a full specification.
We propose that the match operation should be a statement, not an expression.
Although in
many languages it is an expression, being a statement better suits the general
logic of Python syntax. See `rejected ideas`_ for more discussion. The list of
allowed patterns is specified below in the `patterns`_ subsection.
logic of Python syntax. See `rejected ideas`_ for more discussion.
The allowed patterns are described in detail below in the `patterns`_
subsection.
The ``match`` and ``case`` keywords are proposed to be soft keywords,
so that they are recognized as keywords at the beginning of a match