Serhiy Storchaka added the comment: The issue is in lib2to3. tuple_params does not work with lambdas. I confirm the bug.
$ ./python -m lib2to3 -f tuple_params lambda_tuple_params.py RefactoringTool: Refactored lambda_tuple_params.py --- lambda_tuple_params.py (original) +++ lambda_tuple_params.py (refactored) @@ -1,3 +1,3 @@ lambda (a, b), c: a + b + c -def f((a, b), c): return a + b + c +def f(xxx_todo_changeme, c): (a, b) = xxx_todo_changeme; return a + b + c RefactoringTool: Files that need to be modified: RefactoringTool: lambda_tuple_params.py ---------- nosy: +benjamin.peterson, storchaka stage: -> needs patch type: enhancement -> behavior versions: +Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file27356/lambda_tuple_params.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16094> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com