[Python-projects] pylint false positive error

Alejandro Weinstein alejandro.weinstein at gmail.com
Wed Nov 19 16:40:02 CET 2008


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?

Regards,
Alejandro.


More information about the Python-Projects mailing list