New submission from E. Paine <paineeli...@gmail.com>:

As-per PEP 634, structural pattern matching is now in Python. This introduces 
the `match` and `case` keywords. IDLE does not highlight these.

The problem is that these are listed in `keyword.softkwlist` rather than 
`keyword.kwlist` (which is what IDLE uses). This confuses me, as this is not a 
__future__ feature and there is no discussion of it becoming one in #42128. 
There is also no discussion (that I could find) about which list it should be 
put in. The addition to softkwlist was done in PR-22917.

Do we change IDLE to use softkwlist, or move those keywords into kwlist?

----------
assignee: terry.reedy
components: IDLE
messages: 392705
nosy: epaine, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: highlight new `match` / `case` syntax
type: behavior
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44010>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to