Closed
Description
Originally reported by: BitBucket: hacman, GitHub: @hacman?
the following code is not caught by pylint. obviously, x will be a NameError at runtime.
for x in x:
pass
if the loop variable is different, then pylint properly catches a name error. e.g., the following is caught by pylint (undefined-variable as expected):
for i in L:
pass
I hope this report was helpful. Thanks for pylint! It makes my life so much easier.