diff Python/import.c @ 50211:2ee4653927f7

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. ........
author Antoine Pitrou <solipsis@pitrou.net>
date Thu, 18 Dec 2008 11:06:25 +0000
parents fb725366f9ac
children 4d1a68bd8076
line wrap: on
line diff
--- a/Python/import.c	Wed Dec 17 23:18:19 2008 +0000
+++ b/Python/import.c	Thu Dec 18 11:06:25 2008 +0000
@@ -87,8 +87,10 @@
 		      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