[Python-projects] Is this a pylint bug or is Python too dynamic?
skip at pobox.com
skip at pobox.com
Thu Mar 12 15:45:57 CET 2009
I have these two modules:
a.py:
class A:
def __init__(self):
self.arg = 0
def meth(self, arg):
self.arg = arg
b.py:
from a import A
class B(A):
def meth(self, arg):
A.meth(arg+1)
If I run either
pylint b.py
or
pylint a.py b.py
it only emits some convention and refactor messages, no warnings or errors.
I see nothing about calling A.meth with too few args. Shouldn't pylint be
able to detect that? This is with:
% pylint --version
No config file found, using default configuration
pylint 0.16.0,
astng 0.17.4, common 0.38.1
Python 2.4.5 (#4, Apr 12 2008, 09:09:16)
[GCC 3.4.1]
Thanks,
--
Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/
More information about the Python-Projects
mailing list