diff Python/import.c @ 45703:343597c7d682 legacy-trunk

Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files)
author Nick Coghlan <ncoghlan@gmail.com>
date Fri, 07 Mar 2008 14:13:28 +0000
parents 97a1972b672e
children c78d3586c474
line wrap: on
line diff
--- a/Python/import.c	Fri Mar 07 06:22:15 2008 +0000
+++ b/Python/import.c	Fri Mar 07 14:13:28 2008 +0000
@@ -72,9 +72,10 @@
        			    storing constants that should have been removed)
        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)
 .
 */
-#define MAGIC (62151 | ((long)'\r'<<16) | ((long)'\n'<<24))
+#define MAGIC (62161 | ((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