diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-14 05:55:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 05:55:41 (GMT) |
commit | e7d25d3f3b335eb46d102137b447325f54750e31 (patch) | |
tree | e6e9d3c82b4d5ab8152c6b4291ffd58cd60fa91f /Doc/whatsnew | |
parent | 373937182ee029c282bea58cdda57ab41990f404 (diff) | |
download | cpython-e7d25d3f3b335eb46d102137b447325f54750e31.zip cpython-e7d25d3f3b335eb46d102137b447325f54750e31.tar.gz cpython-e7d25d3f3b335eb46d102137b447325f54750e31.tar.bz2 |
bpo-43977: Update pattern matching language reference docs (GH-25917) (GH-26117)
* Update patma language reference with new changes to sequence and mapping
* update 3.10 whatsnew too
(cherry picked from commit 53c91ac5253bf1cb3cb20e1345e798a53f4c3517)
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
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. |