This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients GlitchMr, Ramchandra Apte, benjamin.peterson, mark.dickinson, serhiy.storchaka
Date 2012-09-30.13:20:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349011237.1.0.195153782457.issue16094@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2012-09-30 13:20:37serhiy.storchakasetrecipients: + serhiy.storchaka, mark.dickinson, benjamin.peterson, Ramchandra Apte, GlitchMr
2012-09-30 13:20:37serhiy.storchakasetmessageid: <1349011237.1.0.195153782457.issue16094@psf.upfronthosting.co.za>
2012-09-30 13:20:37serhiy.storchakalinkissue16094 messages
2012-09-30 13:20:36serhiy.storchakacreate