to
Sylvain Thenault <syt at logilab dot fr>
subject
Re: [Python-projects] Bug in Pylint
date
2004/11/25 15:15
"D:\Program Files\PyLint\pylint-0.4.2\bin\pylint" mytest.py
Always on Windows, PyLint detects the problem with the following command:
"D:\Program Files\PyLint\pylint-0.4.2\bin\pylint" mytest.aBadExtension
PyLint displays:
F: 0: exceptions.AttributeError: Parameter instance has no attribute 'undeclaredMethod()'
(The real filename is mytest.py)
Sylvain Thénault a écrit:
On Thursday 25 November à 14:12, Gerard.Delegue@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 ?
