classification
Title: Lambda with complex arguments is ctx STORE
Type: compile error Stage: resolved
Components: Interpreter Core Versions: Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: malthe, r.david.murray
Priority: normal Keywords:

Created on 2017-02-08 09:30 by malthe, last changed 2019-08-31 11:24 by serhiy.storchaka. This issue is now closed.

Messages (2)
msg287291 - (view) Author: Malthe Borch (malthe) * Date: 2017-02-08 09:30
Normally, lambda arguments (positional or keyword-based) are ctx PARAM, since they're parameters.

But complex (packed) arguments are ctx STORE.

This is a problem for AST transformation tools that can't reliably detect the name context.
msg287309 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2017-02-08 12:13
I presume this is a 2.7 only issue.  I'm pretty sure the 2.7 AST isn't going to get changed in 2.7 at this point.
History
Date User Action Args
2019-08-31 11:24:28serhiy.storchakasetstatus: open -> closed
resolution: wont fix
stage: resolved
2017-02-08 12:13:15r.david.murraysetnosy: + r.david.murray
messages: + msg287309
2017-02-08 09:30:21malthecreate