Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 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 | 176c409fd747 |
| children | ecf1bb7baeb1 |
line wrap: on
line diff
--- a/Python/import.c Tue Dec 16 03:35:28 2008 +0000 +++ b/Python/import.c Wed Dec 17 00:38:28 2008 +0000 @@ -73,9 +73,10 @@ Python 2.5c2: 62131 (fix wrong code: for x, in ... in listcomp/genexp) Python 2.6a0: 62151 (peephole optimizations and STORE_MAP opcode) Python 2.6a1: 62161 (WITH_CLEANUP optimization) + Python 2.7a0: 62171 (optimize list comprehensions/change LIST_APPEND) . */ -#define MAGIC (62161 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62171 | ((long)'\r'<<16) | ((long)'\n'<<24)) /* Magic word as global; note that _PyImport_Init() can change the value of this global to accommodate for alterations of how the
