diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-30 06:53:31 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-07-30 06:53:31 (GMT) |
commit | 0d62a062066a4cbc8aabab9c305d60ebf7922c8c (patch) | |
tree | 1232a8cb31283a4b4f2ae3a6840de9a57113eb51 /Python/import.c | |
parent | 33c3e29fcec55d552eae9f684447d5f68ae019d7 (diff) | |
download | cpython-0d62a062066a4cbc8aabab9c305d60ebf7922c8c.zip cpython-0d62a062066a4cbc8aabab9c305d60ebf7922c8c.tar.gz cpython-0d62a062066a4cbc8aabab9c305d60ebf7922c8c.tar.bz2 |
Patch #1531113: Fix augmented assignment with yield expressions.
Also fix a SystemError when trying to assign to yield expressions.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index ef64b21..26664ce 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 |