[Python-projects] Bug in Pylint

Sylvain Thénault Sylvain.Thenault at logilab.fr
Thu Nov 25 14:17:46 CET 2004


On Thursday 25 November à 14:12, Gerard.Delegue at alcatel.fr wrote:
> I'm using Pylint 0.4.2 on Windows.
> 
> When I test the following file on windows, no error is detected.
> 
> On Linux, Pylint detects that the method "undeclaredMethod" is not declared:
> F:  0: Unable to load module mytest (Parameter instance has no attribute 
> 'undeclaredMethod')
> 
> Is there a bug with Pylint 0.4.2 on Windows?
> 
> class Parameter:
>    def __init__(self):
>        """init"""
>    def frequencies(self, date="0"):
>        """frequencies"""
>        date =  "1"
>        return date
> P = Parameter()
> P.undeclaredMethod()

are you lauching pylint using the same command line ?

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org



More information about the Python-Projects mailing list