] > pylint #2463: W0631 false positive when we are sure to do at least one iteration (Logilab.org)

#2463: W0631 false positive when we are sure to do at least one iteration [open]

priorityminor
typebug
loadnot specified
load leftnot specified
not planned

eg

for p in range(10):
  print p

print p

gives

W0631:  8: Using possibly undefined loop variable 'p'

while we are sure "p" will be defined