Patch #1531113: Fix augmented assignment with yield expressions.

Also fix a SystemError when trying to assign to yield expressions.
This commit is contained in:
Neal Norwitz 2006-07-30 06:53:31 +00:00
parent 33c3e29fce
commit 0d62a06206
5 changed files with 52 additions and 12 deletions

View file

@ -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