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

BUILD_LIST followed by BINARY_SUBSCR can be optimized to a BUILD_TUPLE if all members of the list are constants #53004

Closed
alex opened this issue May 18, 2010 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@alex
Copy link
Member

alex commented May 18, 2010

BPO 8758
Nosy @birkenfeld, @alex

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 2010-08-01.22:59:43.908>
created_at = <Date 2010-05-18.21:46:08.247>
labels = ['interpreter-core']
title = 'BUILD_LIST followed by BINARY_SUBSCR can be optimized to a BUILD_TUPLE if all members of the list are constants'
updated_at = <Date 2010-08-01.22:59:43.906>
user = 'https://github.com/alex'

bugs.python.org fields:

activity = <Date 2010-08-01.22:59:43.906>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2010-08-01.22:59:43.908>
closer = 'georg.brandl'
components = ['Interpreter Core']
creation = <Date 2010-05-18.21:46:08.247>
creator = 'alex'
dependencies = []
files = []
hgrepos = []
issue_num = 8758
keywords = []
message_count = 2.0
messages = ['106008', '112397']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'alex']
pr_nums = []
priority = 'normal'
resolution = 'rejected'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue8758'
versions = ['Python 2.7', 'Python 3.3']

@alex
Copy link
Member Author

alex commented May 18, 2010

We do the same thing for a BUILD_LIST followed by a COMPARE_OP (in).

@alex alex added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label May 18, 2010
@birkenfeld
Copy link
Member

I don't think this happens often enough to warrant optimizing.

@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
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

2 participants