diff Python/import.c @ 36695:b6d2f6fd3e11 legacy-trunk

PEP 343 -- the with-statement. This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global).
author Guido van Rossum <guido@python.org>
date Mon, 27 Feb 2006 22:32:47 +0000
parents 7fdc639bc5b4
children 5c36c222e7ca
line wrap: on
line diff
--- a/Python/import.c	Mon Feb 27 21:41:03 2006 +0000
+++ b/Python/import.c	Mon Feb 27 22:32:47 2006 +0000
@@ -54,9 +54,10 @@
        Python 2.4b1: 62061
        Python 2.5a0: 62071
        Python 2.5a0: 62081 (ast-branch)
+       Python 2.5a0: 62091 (with)
 .
 */
-#define MAGIC (62081 | ((long)'\r'<<16) | ((long)'\n'<<24))
+#define MAGIC (62091 | ((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