Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda with complex arguments is ctx STORE #73663

Closed
malthe mannequin opened this issue Feb 8, 2017 · 2 comments
Closed

Lambda with complex arguments is ctx STORE #73663

malthe mannequin opened this issue Feb 8, 2017 · 2 comments
Labels
build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@malthe
Copy link
Mannequin

malthe mannequin commented Feb 8, 2017

BPO 29477
Nosy @bitdancer, @malthe

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2019-08-31.11:24:28.577>
created_at = <Date 2017-02-08.09:30:21.232>
labels = ['interpreter-core', 'build']
title = 'Lambda with complex arguments is ctx STORE'
updated_at = <Date 2019-08-31.11:24:28.576>
user = 'https://github.com/malthe'

bugs.python.org fields:

activity = <Date 2019-08-31.11:24:28.576>
actor = 'serhiy.storchaka'
assignee = 'none'
closed = True
closed_date = <Date 2019-08-31.11:24:28.577>
closer = 'serhiy.storchaka'
components = ['Interpreter Core']
creation = <Date 2017-02-08.09:30:21.232>
creator = 'malthe'
dependencies = []
files = []
hgrepos = []
issue_num = 29477
keywords = []
message_count = 2.0
messages = ['287291', '287309']
nosy_count = 2.0
nosy_names = ['r.david.murray', 'malthe']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue29477'
versions = ['Python 2.7']

@malthe
Copy link
Mannequin Author

malthe mannequin commented Feb 8, 2017

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.

@malthe malthe mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) build The build process and cross-build labels Feb 8, 2017
@bitdancer
Copy link
Member

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

2 participants