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: BUILD_LIST followed by BINARY_SUBSCR can be optimized to a BUILD_TUPLE if all members of the list are constants
Type: Stage:
Components: Interpreter Core Versions: Python 3.3, Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: alex, georg.brandl
Priority: normal Keywords:

Created on 2010-05-18 21:46 by alex, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg106008 - (view) Author: Alex Gaynor (alex) * (Python committer) Date: 2010-05-18 21:46
We do the same thing for a BUILD_LIST followed by a COMPARE_OP (in).
msg112397 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-08-01 22:59
I don't think this happens often enough to warrant optimizing.
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53004
2010-08-01 22:59:43georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg112397

resolution: rejected
2010-05-18 21:46:08alexcreate