File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1307,7 +1307,7 @@ Glossary
1307
1307
t-string
1308
1308
String literals prefixed with ``'t' `` or ``'T' `` are commonly called
1309
1309
"t-strings" which is short for
1310
- :ref: `template string literals <t-strings >`. See also :pep: ` 750 `.
1310
+ :ref: `template string literals <t-strings >`.
1311
1311
1312
1312
text encoding
1313
1313
A string in Python is a sequence of Unicode code points (in range
Original file line number Diff line number Diff line change @@ -938,6 +938,10 @@ the following differences:
938
938
939
939
- Format specifiers containing nested replacement fields are evaluated eagerly,
940
940
prior to being passed to the :class: `~string.templatelib.Interpolation ` object.
941
+ For instance, an interpolation of the form ``{amount:.{precision}f} `` will
942
+ evaluate the expression ``{precision} `` before setting the ``format_spec ``
943
+ attribute of the resulting :class: `!Interpolation ` object; if ``precision ``
944
+ is (for example) ``2 ``, the resulting format specifier will be ``'.2f' ``.
941
945
942
946
- When the equal sign ``'=' `` is provided in an interpolation expression, the
943
947
resulting :class: `~string.templatelib.Template ` object will have the expression
You can’t perform that action at this time.
0 commit comments