mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.14] Emend an error in `string.templatelib` example output (GH-137890) (#137892)
Emend an error in ``string.templatelib`` example output (GH-137890)
(cherry picked from commit 8e3244d39b)
Co-authored-by: Christoph Walcher <christoph-wa@gmx.de>
This commit is contained in:
parent
bb4e747654
commit
c9e2e15438
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ To write a t-string, use a ``'t'`` prefix instead of an ``'f'``, like so:
|
|||
>>> pi = 3.14
|
||||
>>> t't-strings are new in Python {pi!s}!'
|
||||
Template(
|
||||
strings=('t-strings are new in Python ', '.'),
|
||||
strings=('t-strings are new in Python ', '!'),
|
||||
interpolations=(Interpolation(3.14, 'pi', 's', ''),)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue