# HG changeset patch # User Paul Boddie # Date 1716289193 -7200 # Node ID 85fda4fc3acaf7633957de42909028c201aa64b2 # Parent 2ef21d25c6e5361e6b10cd93fdf559cb7191179a# Parent 3668fc79dbdf078054fa984c5759f32abaf33b42 Merged changes from the default branch. diff -r 2ef21d25c6e5 -r 85fda4fc3aca common.py --- a/common.py Mon May 20 01:00:32 2024 +0200 +++ b/common.py Tue May 21 12:59:53 2024 +0200 @@ -381,6 +381,8 @@ target = compiler.ast.AssAttr(n.node.expr, n.node.attrname, "OP_ASSIGN") elif isinstance(n.node, compiler.ast.Name): target = compiler.ast.AssName(n.node.name, "OP_ASSIGN") + elif isinstance(n.node, compiler.ast.Subscript): + target = compiler.ast.Subscript(n.node.expr, "OP_ASSIGN", n.node.subs) else: target = n.node diff -r 2ef21d25c6e5 -r 85fda4fc3aca tests/list.py --- a/tests/list.py Mon May 20 01:00:32 2024 +0200 +++ b/tests/list.py Tue May 21 12:59:53 2024 +0200 @@ -97,3 +97,8 @@ e.reverse() print e # [2, 1, 3] + +# Test augmented operations. + +e[0] += e[1] +print e # [3, 1, 3]