diff options
author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-05-14 05:31:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 05:31:28 (GMT) |
commit | 53c91ac5253bf1cb3cb20e1345e798a53f4c3517 (patch) | |
tree | 9e33c438be8f423cbda5291005301a4fc2ba76b7 /Doc/whatsnew | |
parent | ddd30b2dd207c3c963874f0644cdff2ee5989575 (diff) | |
download | cpython-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.rst | 2 |
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. |