false failure on list comprehension redefines
Bug #1418997 reported by
bei
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I believe the following is a false failure reported by pyflakes.
Code snippet:
some_list = [(1, 2), (3, 4)]
first_tuple, _ = some_list
some_list_
Triggers the following violation:
list comprehension redefines '_' from line 2
For completeness i'm using:
pyflakes --version
0.8.1
/bei
Changed in pyflakes: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think this is avoided when running pyflakes with Python 3 now. Though, I guess it still would affect Python 2.
https:/ /github. com/pyflakes/ pyflakes/ pull/14