You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: