[issue43994] change representation of match as / capture as `Name(..., ctx=Store())`

Brandt Bucher report at bugs.python.org
Fri Apr 30 22:25:56 EDT 2021


Brandt Bucher <brandtbucher at gmail.com> added the comment:

+ Nick and Guido

The only benefit I see on our side is that it leaves the door open for complex assignment targets in the future, like (a, b), a[b], etc.

(If I recall correctly, this is also why NamedExpr uses an expr target rather than just an identifier.)

I guess I'm neutral on this. The usability argument seems weak, but I can see the separate case for forward-compatibility with possible syntax extensions in the future. Thoughts?

Marking as high priority since we need to make a decision on this before the beta.

----------
nosy: +gvanrossum, ncoghlan
priority: normal -> high

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43994>
_______________________________________


More information about the Python-bugs-list mailing list