diff Python/import.c @ 39300:b745b3fd66a6 legacy-trunk

Patch #1531113: Fix augmented assignment with yield expressions. Also fix a SystemError when trying to assign to yield expressions.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 30 Jul 2006 06:53:31 +0000
parents 3f4485b20e79
children b90a8b0395bd
line wrap: on
line diff
--- a/Python/import.c	Sun Jul 30 05:55:39 2006 +0000
+++ b/Python/import.c	Sun Jul 30 06:53:31 2006 +0000
@@ -60,10 +60,11 @@
        Python 2.5a0: 62081 (ast-branch)
        Python 2.5a0: 62091 (with)
        Python 2.5a0: 62092 (changed WITH_CLEANUP opcode)
-       Python 2.5c1: 62101 (fix wrong code: for x, in ...)
+       Python 2.5b3: 62101 (fix wrong code: for x, in ...)
+       Python 2.5b3: 62111 (fix wrong code: x += yield)
 .
 */
-#define MAGIC (62101 | ((long)'\r'<<16) | ((long)'\n'<<24))
+#define MAGIC (62111 | ((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