[Python-projects] Wierd W0631

V.Chukharev chukharev at mail.ru
Thu Oct 16 21:24:16 CEST 2008


Hi,

I get a weird warning from pylint. The attached is a simplified version
of a real program which triggers the warning. The warning is given only
for line 39, although line 33 is an exact copy of line 39 (in the real program
they are slightly different).

$ pylint t.py
No config file found, using default configuration
************* Module t
W: 39:tests: Using possibly undefined loop variable '_i'
...

$ pylint --version
No config file found, using default configuration
pylint 0.15.1, 
astng 0.17.3, common 0.35.0
Python 2.5.2 (r252:60911, Sep  8 2008, 21:21:48) 
[GCC 4.2.1 20070719  [FreeBSD]]

I believe this is a bug in pylint.

Best regards,
-- 
V. Chukharev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.py
Type: text/x-python
Size: 1570 bytes
Desc: not available
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20081016/11c4d746/attachment.py 


More information about the Python-Projects mailing list