[Python-projects] pylint false positive error

Sylvain Thénault sylvain.thenault at logilab.fr
Wed Nov 26 17:40:04 CET 2008


On Wed, Nov 19, 2008 at 08:40:02AM -0700, Alejandro Weinstein wrote:
> Hi:

hi
 
> If I do a
> 
> $pylint -e test_for_pylint.py
> 
> I get
> 
> ************* Module test_for_pylint
> E:  3: No name 'pi' in module 'scipy'
> E:  3: No name 'sin' in module 'scipy'
> 
> However, the program works OK. Here is the code and the result:
> 
> #!/usr/bin/env python
> #  test_for_pylint
> 
> from scipy import pi, sin
> 
> x = sin(2*pi)
> print 'sin(2*pi) = %f' % x
> 
> 
> $./test_for_pylint
> sin(2*pi) = -0.000000
> 
> Is this a bug?

I can't reproduce this pb with the latest pylint/astng release

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list