[Python-projects] pylint and function attributes
Jürgen Hermann
Juergen.Hermann at 1und1.de
Tue Mar 31 15:33:39 CEST 2009
Hi, found another problem with pylint 0.18.0 and no open ticket for it -- basically, pylint doesn't understand function attributes at all. In 0.14, you always got the warning (which I ignored so far), now you also get an error (see below).
> cat test.py
"test"
def test():
"test"
print test.bar
test.bar = 1
test()
> python test.py
1
> pylint -rn test.py
************* Module test
E: 4:test: Class 'test' has no 'bar' member
W: 5: Unused variable 'bar'
> pylint --version
pylint 0.18.0,
astng 0.19.0, common 0.39.0
Python 2.5.2 (r252:60911, Nov 14 2008, 19:46:32)
[GCC 4.3.2]
More information about the Python-Projects
mailing list