From 0d62a062066a4cbc8aabab9c305d60ebf7922c8c Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 30 Jul 2006 06:53:31 +0000 Subject: Patch #1531113: Fix augmented assignment with yield expressions. Also fix a SystemError when trying to assign to yield expressions. --- Python/import.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Python/import.c') diff --git a/Python/import.c b/Python/import.c index ef64b21b383..26664ce7c88 100644 --- a/Python/import.c +++ b/Python/import.c @@ -60,10 +60,11 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); 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 -- cgit v1.2.3