This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE: Add match and case to completions
Type: behavior Stage: resolved
Components: IDLE Versions: Python 3.11, Python 3.10
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: mdk, miss-islington, terry.reedy
Priority: normal Keywords: patch

Created on 2021-10-16 14:24 by mdk, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29000 merged terry.reedy, 2021-10-16 21:39
PR 29001 merged miss-islington, 2021-10-16 22:44
Messages (5)
msg404083 - (view) Author: Julien Palard (mdk) * (Python committer) Date: 2021-10-16 14:24
In IDLE, when hitting Ctrl-space on `matc` or `cas`, there's no completion to `match` and `case.

References: https://mail.python.org/archives/list/docs@python.org/thread/DRZIHLQU25JUD7IQKCOIIKI4ADB746MA/
msg404109 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-10-16 19:07
That is because they are not keywords in keyword.kwlist.  But we can add them to the completion list.  Thanks for transferring the report.
msg404118 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-10-16 22:44
New changeset 42ac06dcd234bdda989dcfe854ac5173337024c9 by Terry Jan Reedy in branch 'main':
bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000)
https://github.com/python/cpython/commit/42ac06dcd234bdda989dcfe854ac5173337024c9
msg404120 - (view) Author: miss-islington (miss-islington) Date: 2021-10-16 23:14
New changeset a29470307308f64af9c55263cdd6e1984ba89925 by Miss Islington (bot) in branch '3.10':
[3.10] bpo-45495: Add 'case' and 'match' to IDLE completions list. (GH-29000) (GH-29001)
https://github.com/python/cpython/commit/a29470307308f64af9c55263cdd6e1984ba89925
msg404121 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-10-16 23:19
I emailed the OP reporting the fix, which will be in the next releases of 3.10 and 3.11.
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89658
2021-10-16 23:19:42terry.reedysetstatus: open -> closed
resolution: fixed
messages: + msg404121

stage: patch review -> resolved
2021-10-16 23:14:19miss-islingtonsetmessages: + msg404120
2021-10-16 22:44:18miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request27283
2021-10-16 22:44:08terry.reedysetmessages: + msg404118
2021-10-16 21:39:41terry.reedysetkeywords: + patch
stage: test needed -> patch review
pull_requests: + pull_request27282
2021-10-16 19:07:27terry.reedysettype: behavior
messages: + msg404109
stage: test needed
2021-10-16 18:59:01terry.reedysettitle: IDLE: Add match and case -> IDLE: Add match and case to completions
2021-10-16 14:24:45mdkcreate