mirror of
https://github.com/python/cpython.git
synced 2026-07-25 11:22:45 -04: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:
committed by
GitHub
parent
bb4e747654
commit
c9e2e15438
@@ -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', ''),)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user