mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Issue #2183: Simplify and optimize bytecode for list comprehensions.
This commit is contained in:
parent
43caaa09ea
commit
d0c3515bc5
9 changed files with 34 additions and 63 deletions
|
@ -58,7 +58,6 @@ def_op('UNARY_CONVERT', 13)
|
|||
|
||||
def_op('UNARY_INVERT', 15)
|
||||
|
||||
def_op('LIST_APPEND', 18)
|
||||
def_op('BINARY_POWER', 19)
|
||||
def_op('BINARY_MULTIPLY', 20)
|
||||
def_op('BINARY_DIVIDE', 21)
|
||||
|
@ -128,7 +127,7 @@ name_op('STORE_NAME', 90) # Index in name list
|
|||
name_op('DELETE_NAME', 91) # ""
|
||||
def_op('UNPACK_SEQUENCE', 92) # Number of tuple items
|
||||
jrel_op('FOR_ITER', 93)
|
||||
|
||||
def_op('LIST_APPEND', 94)
|
||||
name_op('STORE_ATTR', 95) # Index in name list
|
||||
name_op('DELETE_ATTR', 96) # ""
|
||||
name_op('STORE_GLOBAL', 97) # ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue