]> granicus.if.org Git - python/commitdiff
Issue #23275: Backport empty square bracket assignment documentation fix
authorMartin Panter <vadmium+py@gmail.com>
Wed, 8 Jun 2016 12:44:30 +0000 (12:44 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Wed, 8 Jun 2016 12:44:30 +0000 (12:44 +0000)
Doc/reference/simple_stmts.rst

index 2c0b8dbc7ce4c50fd0ca1d42563c55928d74ed0f..848bb9e93d1315e2a0dcd8451aaa1590ffddcaa3 100644 (file)
@@ -87,7 +87,7 @@ attributes or items of mutable objects:
    target_list: `target` ("," `target`)* [","]
    target: `identifier`
          : | "(" `target_list` ")"
-         : | "[" `target_list` "]"
+         : | "[" [`target_list`] "]"
          : | `attributeref`
          : | `subscription`
          : | `slicing`