diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2006-07-09 16:16:34 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2006-07-09 16:16:34 (GMT) |
commit | 0e07b60a4e44129cfafaeacac765cf957e2ea219 (patch) | |
tree | bf67b1a4f4302118d38e3c57ddd91f20da8b1d99 /Python/compile.c | |
parent | 63597f129d73ddcfc2f3adc99d0d84d1da91082e (diff) | |
download | cpython-0e07b60a4e44129cfafaeacac765cf957e2ea219.zip cpython-0e07b60a4e44129cfafaeacac765cf957e2ea219.tar.gz cpython-0e07b60a4e44129cfafaeacac765cf957e2ea219.tar.bz2 |
Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 5bda62e..3ddb067 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -3688,7 +3688,8 @@ compiler_augassign(struct compiler *c, stmt_ty s) VISIT(c, expr, auge); break; case Name_kind: - VISIT(c, expr, s->v.AugAssign.target); + if (!compiler_nameop(c, e->v.Name.id, Load)) + return 0; VISIT(c, expr, s->v.AugAssign.value); ADDOP(c, inplace_binop(c, s->v.AugAssign.op)); return compiler_nameop(c, e->v.Name.id, Store); |