From ed74e243c6833b12984b9b7e03d71396b134ceab Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Sun, 12 Jun 2016 01:56:24 +0000 Subject: Issue #24136: Adjust f-strings doc for interable unpacking --- Doc/reference/lexical_analysis.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index fa65c0c..7af1b28 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -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`)* -- cgit v0.12