pylint #2508 false positive with lambda [resolved]
pylint -f parseable bug.py bug.py:1: [C] Missing required attribute "__revision__" bug.py:6: [E, buggy.<lambda>] Using variable 'a' before assignment bug.py:6: [E, buggy.<lambda>] Using variable 'b' before assignment
/tmp$ pylint --version pylint 0.12.1, astng 0.16.1, common 0.19.2 Python 2.4.3 (#1, Oct 2 2006, 11:23:48) [GCC 3.3.6]
The release notes in the mailing list stated that __revision__ was no longer required, so I am surprised to see that message. The lambda error is from a +lambda construct of...
lambda (a, b): a != b
...but if I were to change that bit of code to be...
lambda (x): x != x
...then pylint will be quiet about the lambda expression.
|closed by||<not specified>|