mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.
This commit is contained in:
parent
63597f129d
commit
0e07b60a4e
5 changed files with 20 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue