erroneous 'undefined name' in exception handling + lambda
Bug #1669713 reported by
Tomi Oikarinen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
New
|
Undecided
|
Unassigned |
Bug Description
$ cat pyflakes-test.py
try:
raise Exception("test")
except Exception as e:
print(e)
x = lambda: e
print(x)
print(x())
$ pyflakes --version
1.5.0
$ pyflakes pyflakes-test.py
pyflakes-test.py:5: undefined name 'e'
running this with older pyflakes seems to work OK:
$ pyflakes --version
0.8.1
$ pyflakes pyflakes-test.py && echo $?
0
To post a comment you must log in.