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.

classification
Title: [AST] automatic unpacking of arguments broken
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, ncoghlan
Priority: normal Keywords:

Created on 2005-04-19 23:37 by brett.cannon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
ast_lambda_nested_args_fix.diff ncoghlan, 2005-05-28 10:34
Messages (4)
msg25086 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2005-04-19 23:37
The code ``(lambda (x, y): x)((3, 5))`` fails because
the passed-in tuple is not unpacked into the arguments.
msg25087 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2005-05-28 09:41
Logged In: YES 
user_id=1038590

Investigating lambda behaviour, as per comment on 1190011
msg25088 - (view) Author: Nick Coghlan (ncoghlan) * (Python committer) Date: 2005-05-28 10:34
Logged In: YES 
user_id=1038590

After looking in all the wrong places, it turned out to be something 
simple in the compiler. I factored out the relevant code from the 
function compilation, so that lambda compilation can use it too. 
 
Assigning to Brett for review. 
msg25089 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2005-07-11 03:44
Logged In: YES 
user_id=357491

Applied in rev. 1.1.2.109 .  Closed as accepted.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41882
2005-04-19 23:37:29brett.cannoncreate