PEP 622: Add note to Django example

Fixes 510
This commit is contained in:
Guido van Rossum 2020-07-09 15:10:05 -07:00
parent bf6e6ec5ba
commit a2e4fc9aed
1 changed files with 2 additions and 1 deletions

View File

@ -199,7 +199,8 @@ see a pattern similar to list unpacking, but also type checking: the
``Promise()`` pattern is not an object construction, but represents
anything that's an instance of ``Promise``. The pattern operator ``|``
separates alternative patterns (not unlike regular expressions or EBNF
grammars), and ``_`` is a wildcard.
grammars), and ``_`` is a wildcard. (Note that the match syntax used
here will accept user-defined sequences, as well as lists and tuples.)
In some occasions, extraction of information is not as relevant as
identifying structure. Take the following example from the