We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f0c44 commit 2061750Copy full SHA for 2061750
Doc/library/string.templatelib.rst
@@ -259,8 +259,9 @@ Types
259
:type: str
260
261
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.
+ is the expression text found inside the curly braces (``{`` & ``}``),
+ including any whitespace, excluding the curly braces themselves,
264
+ and ending before the first ``!``, ``:``, or ``=`` if any is present.
265
For manually created interpolations, :attr:`!expression` is the arbitrary
266
string provided when constructing the interpolation instance.
267
0 commit comments