Activity log for bug #1431099

Date Who What changed Old value New value Message
2015-03-12 01:02:41 John L. Villalovos bug added bug
2015-03-12 01:21:18 John L. Villalovos summary pyflakes gives erroneous F821 pyflakes gives erroneous 'undefined name'
2015-03-12 01:21:42 John L. Villalovos description $ cat tt.py #!/usr/bin/python -tt import random import sys def main(): f = None try: f = "bob" if random.choice((True, False)): raise Exception('test') except: del f raise Exception('my custom exception') print f if '__main__' == __name__: sys.exit(main()) $ flake8 tt.py tt.py:15:1: F821 undefined name 'f' $ cat tt.py #!/usr/bin/python -tt import random import sys def main():     f = None     try:         f = "bob"         if random.choice((True, False)):             raise Exception('test')     except:         del f         raise Exception('my custom exception')     print f if '__main__' == __name__:     sys.exit(main()) $ $ pyflakes tt.py tt.py:15: undefined name 'f'
2015-05-27 15:06:16 Phil Frost pyflakes: status New Confirmed
2015-05-27 15:06:23 Phil Frost pyflakes: importance Undecided Medium