pyflakes gives erroneous 'undefined name'
Bug #1431099 reported by
John L. Villalovos
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Confirmed
|
Medium
|
Unassigned |
Bug Description
$ cat tt.py
#!/usr/bin/python -tt
import random
import sys
def main():
f = None
try:
f = "bob"
if random.
raise Exception('test')
except:
del f
raise Exception('my custom exception')
print f
if '__main__' == __name__:
sys.
$ $ pyflakes tt.py
tt.py:15: undefined name 'f'
summary: |
- pyflakes gives erroneous F821 + pyflakes gives erroneous 'undefined name' |
description: | updated |
To post a comment you must log in.
Confirmed. Thanks for the report.