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

Anthony Sottile report at bugs.python.org
Fri Apr 30 18:49:51 EDT 2021


New submission from Anthony Sottile <asottile at umich.edu>:

I'm looking at adding support to `match` for pyflakes, and the first impression I have is that `MatchAs` is unnecessarily different from `Name` with `ctx=Store()`

if it were represented as the latter pyflakes would not require special handling of `match`, it would work the same as the current code

I suspect other static analysis tools would benefit from a change as well

----------
messages: 392531
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: change representation of match as / capture as `Name(..., ctx=Store())`
versions: Python 3.10

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


More information about the New-bugs-announce mailing list