# HG changeset patch # User Paul Boddie # Date 1716303565 -7200 # Node ID c8149a01d932334c3b51467324f00f901f536d9b # Parent 16990afa27543e3536114fe5942ed9b3fa1e2756# Parent 85fda4fc3acaf7633957de42909028c201aa64b2 Merged changes from the trailing-data branch. diff -r 16990afa2754 -r c8149a01d932 common.py --- a/common.py Mon May 20 01:05:12 2024 +0200 +++ b/common.py Tue May 21 16:59:25 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 16990afa2754 -r c8149a01d932 tests/list.py --- a/tests/list.py Mon May 20 01:05:12 2024 +0200 +++ b/tests/list.py Tue May 21 16:59:25 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]