]> granicus.if.org Git - python/commitdiff
Issue #24136: Adjust f-strings doc for interable unpacking
authorMartin Panter <vadmium+py@gmail.com>
Sun, 12 Jun 2016 01:56:24 +0000 (01:56 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sun, 12 Jun 2016 01:56:24 +0000 (01:56 +0000)
Doc/reference/lexical_analysis.rst

index fa65c0c63677a518503033b256468a084a13f2c4..7af1b28e0f54c3fe9008c8faac10baa86b55dea5 100644 (file)
@@ -619,7 +619,8 @@ for the contents of the string is:
 .. productionlist::
    f_string: (`literal_char` | "{{" | "}}" | `replacement_field`)*
    replacement_field: "{" `f_expression` ["!" `conversion`] [":" `format_spec`] "}"
-   f_expression: `conditional_expression` ("," `conditional_expression`)* [","]
+   f_expression: (`conditional_expression` | "*" `or_expr`)
+               :   ("," `conditional_expression` | "," "*" `or_expr`)* [","]
                : | `yield_expression`
    conversion: "s" | "r" | "a"
    format_spec: (`literal_char` | NULL | `replacement_field`)*