pylint #9188 Avoidable W0631 [validation pending]

Jürgen :

The following can be detected since the loop variable is assigned to in the else clause (since either the loop target list gets assigned to, OR the else clause runs).

> cat lint2.py
"Avoidable W0631"
for defined in range(0):
  pass
else:
  defined = -1

print defined

> pylint -rn -iy lint2.py
************* Module lint2
W0631:  7: Using possibly undefined loop variable 'defined'

> python lint2.py
-1
prioritynormal
typebug
done in<not specified>
load0.500
load left0.000
closed by#179dfac3bb53 Detect assignments to a loop variable in the else branch of a for statement.