Skip to content

Commit 2061750

Browse files
committed
Clarify further what goes into
1 parent 86f0c44 commit 2061750

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/library/string.templatelib.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ Types
259259
:type: str
260260

261261
For interpolations created by t-string literals, :attr:`!expression`
262-
is the source text found inside the curly braces (``{`` & ``}``),
263-
including any whitespace, but excluding the curly braces themselves.
262+
is the expression text found inside the curly braces (``{`` & ``}``),
263+
including any whitespace, excluding the curly braces themselves,
264+
and ending before the first ``!``, ``:``, or ``=`` if any is present.
264265
For manually created interpolations, :attr:`!expression` is the arbitrary
265266
string provided when constructing the interpolation instance.
266267

0 commit comments

Comments
 (0)