File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1307,7 +1307,7 @@ Glossary
13071307 t-string
13081308 String literals prefixed with ``'t' `` or ``'T' `` are commonly called
13091309 "t-strings" which is short for
1310- :ref: `template string literals <t-strings >`. See also :pep: ` 750 `.
1310+ :ref: `template string literals <t-strings >`.
13111311
13121312 text encoding
13131313 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:
938938
939939- Format specifiers containing nested replacement fields are evaluated eagerly,
940940 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' ``.
941945
942946- When the equal sign ``'=' `` is provided in an interpolation expression, the
943947 resulting :class: `~string.templatelib.Template ` object will have the expression
You can’t perform that action at this time.
0 commit comments