#308 Does not distinguish function (object) vs. return in Lambda

open
nobody
None
5
2012-04-02
2012-04-02
Anonymous
No

This code:
ops = {}
fdel = ops.get('fdel', lambda self: delattr(self, ''))

Produces this warningf:
utils.py:589: Using the return value from (delattr) which is always None

The lambda is returning the function delattr(self, ''), not the return value of invoking that function.

Discussion