From: Georg Brandl Date: Sun, 18 Jan 2009 13:47:26 +0000 (+0000) Subject: #4857: fix augmented assignment target spec. X-Git-Tag: v2.7a1~2262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a565cc41da56cbf977a5b9befa316edd84a1a53;p=python #4857: fix augmented assignment target spec. --- diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index d43ee8b864..238e02e2bb 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -228,7 +228,8 @@ Augmented assignment is the combination, in a single statement, of a binary operation and an assignment statement: .. productionlist:: - augmented_assignment_stmt: `target` `augop` (`expression_list` | `yield_expression`) + augmented_assignment_stmt: `augtarget` `augop` (`expression_list` | `yield_expression`) + augtarget: `identifier` | `attributeref` | `subscription` | `slicing` augop: "+=" | "-=" | "*=" | "/=" | "//=" | "%=" | "**=" : | ">>=" | "<<=" | "&=" | "^=" | "|="