Mercurial > cpython-lru_cache-weakref
diff Lib/opcode.py @ 50204:94e79d78dff0 legacy-trunk
Issue #2183: Simplify and optimize bytecode for list comprehensions.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Wed, 17 Dec 2008 00:38:28 +0000 |
| parents | 7ac117b3be37 |
| children | ef8fe9088696 |
line wrap: on
line diff
--- a/Lib/opcode.py Tue Dec 16 03:35:28 2008 +0000 +++ b/Lib/opcode.py Wed Dec 17 00:38:28 2008 +0000 @@ -58,7 +58,6 @@ 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('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) # ""
