[Python-projects] pylint false negative on keyword argument
A.T.Hofkamp
a.t.hofkamp at tue.nl
Thu Dec 11 11:30:35 CET 2008
Hello,
I found a case where Python issues a error, while pylint doesn't.
A search at your site didn't produce this case, so I think it is a new one.
Sincerely,
Albert
% pylint --version
No config file found, using default configuration
pylint 0.15.2,
astng 0.17.3, common 0.35.0
Python 2.3.4 (#1, Jul 25 2008, 14:24:21)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-10)]
% pylint -rn xxx.py
No config file found, using default configuration
% python xxx.py
Traceback (most recent call last):
File "xxx.py", line 10, in ?
xxx(aaa = 3, bbb = 4)
TypeError: xxx() got an unexpected keyword argument 'bbb'
% cat xxx.py
"""
Pylint false negative on keyword arguments
"""
def xxx(aaa):
"""
This function has no parm bbb
"""
return aaa + 1
print xxx(aaa = 3, bbb = 4)
More information about the Python-Projects
mailing list