Moved a sentence to where it makes more sense.

This commit is contained in:
Eric V. Smith 2015-08-28 11:41:58 -04:00
parent 75f463a375
commit 3e2bcc6966
1 changed files with 3 additions and 3 deletions

View File

@ -470,6 +470,9 @@ use variables as index values::
>>> f'a={d[a]}'
'a=20'
See [#]_ for a further discussion. It was this observation that led to
full Python expressions being supported in f-strings.
Furthermore, the limited expressions that str.format() understands
need not be valid Python expressions. For example::
@ -479,9 +482,6 @@ need not be valid Python expressions. For example::
For this reason, the str.format() "expression parser" is not suitable
for use when implementing f-strings.
See [#]_ for a further discussion. It was this observation that led to
full Python expressions being supported in f-strings.
Triple-quoted f-strings
-----------------------