Moved a sentence to where it makes more sense.
This commit is contained in:
parent
75f463a375
commit
3e2bcc6966
|
@ -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
|
||||
-----------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue