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

Brandt Bucher report at bugs.python.org
Fri Apr 30 20:13:38 EDT 2021


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

FWIW, I'm never used pyflakes, but I'm not really sure how it would be able to provide useful linting by just treating patterns as expressions (which is what I assume is desired here).

I assume that these are the three lines you're trying to get rid of?

https://github.com/asottile/pyflakes/blob/silly_match_statement/pyflakes/checker.py#L2390-L2392

----------

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


More information about the Python-bugs-list mailing list