Fix some markup.
This commit is contained in:
parent
14c0910963
commit
71c8591e16
|
@ -373,7 +373,7 @@ Leading and trailing whitespace in expressions is skipped
|
|||
|
||||
For ease of readability, leading and trailing whitespace in
|
||||
expressions is ignored. However, this does not affect the string or
|
||||
keys passed to str.interpolate().
|
||||
keys passed to str.interpolate()::
|
||||
|
||||
>>> x = 100
|
||||
>>> f'x = { x }'
|
||||
|
@ -386,7 +386,7 @@ This would be evaluated as::
|
|||
Discussion
|
||||
==========
|
||||
|
||||
Most of the discussions on python-ideas [#]_ focused on a few issues:
|
||||
Most of the discussions on python-ideas [#]_ focused on a few issues.
|
||||
|
||||
- Whether to allow full Python expressions.
|
||||
- How to designate f-strings, and how to specify the location of
|
||||
|
@ -505,7 +505,7 @@ Future extensions:
|
|||
XXX: By using another leading character (say, 'i'), we could extend
|
||||
this proposal to cover internationalization and localization. The idea
|
||||
is that the string would be passed to some lookup function before
|
||||
.interpolate() is called on it:
|
||||
.interpolate() is called on it::
|
||||
|
||||
>>> name = 'Eric'
|
||||
>>> fi'Name: {name}'
|
||||
|
|
Loading…
Reference in New Issue