mirror of https://github.com/python/cpython
#4857: fix augmented assignment target spec.
This commit is contained in:
parent
9f7fb849df
commit
4a565cc41d
|
@ -228,7 +228,8 @@ Augmented assignment is the combination, in a single statement, of a binary
|
||||||
operation and an assignment statement:
|
operation and an assignment statement:
|
||||||
|
|
||||||
.. productionlist::
|
.. 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: "+=" | "-=" | "*=" | "/=" | "//=" | "%=" | "**="
|
augop: "+=" | "-=" | "*=" | "/=" | "//=" | "%=" | "**="
|
||||||
: | ">>=" | "<<=" | "&=" | "^=" | "|="
|
: | ">>=" | "<<=" | "&=" | "^=" | "|="
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue