[Python-projects] pylint doesn't detect missing number of parameters in class
Dotan Barak
dotanba at gmail.com
Wed Mar 11 16:12:51 CET 2009
Hi.
I used pylint version 0.16.0 on the following python code that
contains a bug (wrong number of parameter to the class):
<start>
"""File example"""
class MyClass:
"""Example"""
def __init__(self, param1, param2, param3):
self.param1 = param1
self.param2 = param2
self.param3 = param3
def print2(self):
"""Print func"""
pass
def walk(self):
"""Walk func"""
pass
_my_class = MyClass(1, 2)
<end>
It seems that pylint could not detect this error.
Thanks
Dotan
More information about the Python-Projects
mailing list