pylint #2463 W0631 false positive when we are sure to do at least one iteration [open]
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 | |
priority | minor |
---|---|
type | bug |
done in | <not specified> |
closed by | <not specified> |
similar entities
- logilab-astng #3207 filter infered values according to if statement
- pylint #4024 W0631 false positive if a "else" clause is defining the loop variable
- pylint #9188 Avoidable W0631
- logilab-astng #3531 Type inference on factory classmethod
- logilab-astng #19641 "maximum recursion depth exceeded" messages w/ python 2.6
[see all]
Comments
-
2008/11/24 07:17, written by sthenault
add commentskip reported the same pb with non-empty lists.