#315 Lambda confuses used arguments

open
nobody
None
5
2012-07-25
2012-07-25
No

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

Discussion

  •  
    Attachments