summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-01-18 13:47:26 (GMT)
committerGeorg Brandl <georg@python.org>2009-01-18 13:47:26 (GMT)
commit4a565cc41da56cbf977a5b9befa316edd84a1a53 (patch)
treefb8a74f77b3861e52e80b72460ea8c033772d1ee /Doc/reference
parent9f7fb849dfbb8e54f1da637c086cd0433f5b7169 (diff)
downloadcpython-4a565cc41da56cbf977a5b9befa316edd84a1a53.zip
cpython-4a565cc41da56cbf977a5b9befa316edd84a1a53.tar.gz
cpython-4a565cc41da56cbf977a5b9befa316edd84a1a53.tar.bz2
#4857: fix augmented assignment target spec.
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/simple_stmts.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst
index d43ee8b..238e02e 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: "+=" | "-=" | "*=" | "/=" | "//=" | "%=" | "**="
: | ">>=" | "<<=" | "&=" | "^=" | "|="