mirror of
https://github.com/python/cpython.git
synced 2026-05-18 02:15:28 -04:00
Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user