You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playing with it a bit, it appears to only work if the lambda only has one argument. However, the code for this is in lib2to3, so it's not easy for us to fix.
I think I see the problem: the fixer pattern is just not matching on a case like lambda (rc, out, err), fn=fn: ... because it is expecting parens around the whole parameter list.
The discussion in http://bugs.python.org/issue16094 is confused/wrong, because they're complaining about issues for which the fixer design has already chosen the same compromises for other very similar cases.
I would have expected this to be changed to something like
(moved from mitsuhiko/python-modernize#23 )
The text was updated successfully, but these errors were encountered: