Anonymous
-
2012-07-25
When a lambda is present in the body of a function, pychecker 0.8.19 can get confused and report that the parameters of that function are unused, whereas in fact they are.
Examples:
def a(b):
c = b
c.sort(lambda x, y: x - y)
def a2(b):
d = lambda x: x
return d(b)
in both cases we get
a.py:1: Parameter (b) not used