diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-06-12 01:46:50 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-06-12 01:46:50 (GMT) |
commit | 0c0da48aede7e56f722fd8240bf7c27a862bc4d3 (patch) | |
tree | 898a5fc9d59017e5cdb8c2366b08e470da2d736d /Doc/reference/simple_stmts.rst | |
parent | 0d18c15fbf4365764e61017c1ccb6cecc49edf84 (diff) | |
download | cpython-0c0da48aede7e56f722fd8240bf7c27a862bc4d3.zip cpython-0c0da48aede7e56f722fd8240bf7c27a862bc4d3.tar.gz cpython-0c0da48aede7e56f722fd8240bf7c27a862bc4d3.tar.bz2 |
Issue #24136: Document generalized unpacking, PEP 448
Based on patches by Konstantin Molchanov and Neil Girdhar.
Diffstat (limited to 'Doc/reference/simple_stmts.rst')
-rw-r--r-- | Doc/reference/simple_stmts.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index 7d71752..d403c4d 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -45,7 +45,7 @@ expression statements are allowed and occasionally useful. The syntax for an expression statement is: .. productionlist:: - expression_stmt: `expression_list` + expression_stmt: `starred_expression` An expression statement evaluates the expression list (which may be a single expression). @@ -81,7 +81,7 @@ Assignment statements are used to (re)bind names to values and to modify attributes or items of mutable objects: .. productionlist:: - assignment_stmt: (`target_list` "=")+ (`expression_list` | `yield_expression`) + assignment_stmt: (`target_list` "=")+ (`starred_expression` | `yield_expression`) target_list: `target` ("," `target`)* [","] target: `identifier` : | "(" `target_list` ")" @@ -892,7 +892,7 @@ The :keyword:`nonlocal` statement nonlocal_stmt: "nonlocal" `identifier` ("," `identifier`)* .. XXX add when implemented - : ["=" (`target_list` "=")+ expression_list] + : ["=" (`target_list` "=")+ starred_expression] : | "nonlocal" identifier augop expression_list The :keyword:`nonlocal` statement causes the listed identifiers to refer to |