summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-12 01:56:24 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-06-12 01:56:24 +0000
commit39b6b4036a60438cde17781a42bcce5bf12f5921 (patch)
treef1345f1ad4768418da5cc29ef45448f4b7e7956f
parente24da09d797e1e06fb51bb760c3e2764ef3849e1 (diff)
downloadcpython-39b6b4036a60438cde17781a42bcce5bf12f5921.tar.gz
Issue #24136: Adjust f-strings doc for interable unpacking
-rw-r--r--Doc/reference/lexical_analysis.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index fa65c0c636..7af1b28e0f 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`)*