Issue #24136: Adjust f-strings doc for interable unpacking

This commit is contained in:
Martin Panter 2016-06-12 01:56:24 +00:00
parent 99cb0cda15
commit ed74e243c6
1 changed files with 2 additions and 1 deletions

View 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`)*