Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 39037:9f70f6ba7b69 legacy-trunk
Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> |
|---|---|
| date | Sun, 09 Jul 2006 16:16:34 +0000 |
| parents | 47d8d19ccadc |
| children | ca3d9a67126b |
line wrap: on
line diff
--- a/Python/compile.c Sat Jul 08 19:55:05 2006 +0000 +++ b/Python/compile.c Sun Jul 09 16:16:34 2006 +0000 @@ -3688,7 +3688,8 @@ 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);
