On 08 septembre 17:54, Vladimir Chukharev wrote:
> Hi,
> 
> Another false positive, for static members of a class, similar to the below 
> sited
> one for static members of a module.
> 
> Note that no error messages about bb for as-is program is issued. Uncommenting
> any commented-out line changes the number of error messages. Uncommenting line
> #             self.bb += val
> increases the number or error messages (adds 3 about bb), any other line,
> decreases it.
> 
> $ cat t.py
[snip test case] 
> $ pylint -e t.py
> ************* Module t
> E: 14:Klass.incr: Instance of 'Klass' has no 'aa' member
> E: 15:Klass.incr: Instance of 'Klass' has no 'aa' member
> E: 18:Klass.incr: Instance of 'Klass' has no 'aa' member
> E: 20:Klass.incr: Instance of 'Klass' has no 'cc' member

I've filed a ticket for this: http://www.logilab.org/ticket/13944

> >$ cat t.py
> >#!/usr/bin/env python
> >import serial
> >print 'EIGHTBITS =', serial.EIGHTBITS
> >
> >$ ./t.py
> >EIGHTBITS = 8
> >
> >$ pylint -e t.py
> >************* Module t
> >E:  3: Module 'serial' has no 'EIGHTBITS' member

huum, I don't reproduce this one w/ the same config, but python 2.5 instead of 
2.6.
I don't have python 2.6 available, can someone check it's actually a 2.6 
specific pb?

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to