diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-12-18 11:06:25 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-12-18 11:06:25 +0000 |
commit | f289ae6f01683689dfd07785c9617175b40aea91 (patch) | |
tree | dd9a6f78817fcedbd95db286188507cf21a52bc0 /Python/import.c | |
parent | 621601a698a285a45231a6fd223db33566dcb842 (diff) | |
download | cpython-git-f289ae6f01683689dfd07785c9617175b40aea91.tar.gz |
Merged revisions 67818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67818 | antoine.pitrou | 2008-12-17 01:38:28 +0100 (mer., 17 déc. 2008) | 3 lines
Issue #2183: Simplify and optimize bytecode for list comprehensions.
........
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 2bad2e5248..621284ecb4 100644 --- a/Python/import.c +++ b/Python/import.c @@ -87,8 +87,10 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); 3102 (__file__ points to source file) Python 3.0a4: 3110 (WITH_CLEANUP optimization). Python 3.0a5: 3130 (lexical exception stacking, including POP_EXCEPT) + Python 3.1a0: 3140 (optimize list, set and dict comprehensions: + change LIST_APPEND and SET_ADD, add MAP_ADD) */ -#define MAGIC (3130 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (3140 | ((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 |