summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorKen Jin <28750310+Fidget-Spinner@users.noreply.github.com>2021-05-14 05:31:28 (GMT)
committerGitHub <noreply@github.com>2021-05-14 05:31:28 (GMT)
commit53c91ac5253bf1cb3cb20e1345e798a53f4c3517 (patch)
tree9e33c438be8f423cbda5291005301a4fc2ba76b7 /Doc/whatsnew
parentddd30b2dd207c3c963874f0644cdff2ee5989575 (diff)
downloadcpython-53c91ac5253bf1cb3cb20e1345e798a53f4c3517.zip
cpython-53c91ac5253bf1cb3cb20e1345e798a53f4c3517.tar.gz
cpython-53c91ac5253bf1cb3cb20e1345e798a53f4c3517.tar.bz2
bpo-43977: Update pattern matching language reference docs (GH-25917)
* Update patma language reference with new changes to sequence and mapping * update 3.10 whatsnew too
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.10.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 9394ee7..c15bb32 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -589,7 +589,7 @@ Several other key features:
- Like unpacking assignments, tuple and list patterns have exactly the
same meaning and actually match arbitrary sequences. Technically,
- the subject must be an instance of ``collections.abc.Sequence``.
+ the subject must be a sequence.
Therefore, an important exception is that patterns don't match iterators.
Also, to prevent a common mistake, sequence patterns don't match strings.