mirror of
https://github.com/python/cpython.git
synced 2025-09-11 03:07:01 +00:00
Patch #1531113: Fix augmented assignment with yield expressions.
Also fix a SystemError when trying to assign to yield expressions.
This commit is contained in:
parent
33c3e29fce
commit
0d62a06206
5 changed files with 52 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue