File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,8 +198,9 @@ Format String Syntax
198198The :meth: `str.format ` method and the :class: `Formatter ` class share the same
199199syntax for format strings (although in the case of :class: `Formatter `,
200200subclasses can define their own format string syntax). The syntax is
201- related to that of :ref: `formatted string literals <f-strings >`, but it is
202- less sophisticated and, in particular, does not support arbitrary expressions.
201+ related to that of :ref: `formatted string literals <f-strings >` and
202+ :ref: `template string literals <t-strings >`, but it is less sophisticated
203+ and, in particular, does not support arbitrary expressions.
203204
204205.. index ::
205206 single: {} (curly brackets); in string formatting
@@ -306,7 +307,7 @@ Format Specification Mini-Language
306307
307308"Format specifications" are used within replacement fields contained within a
308309format string to define how individual values are presented (see
309- :ref: `formatstrings ` and :ref: `f -strings `).
310+ :ref: `formatstrings `, :ref: ` f-strings `, and :ref: `t -strings `).
310311They can also be passed directly to the built-in
311312:func: `format ` function. Each formattable type may define how the format
312313specification is to be interpreted.
Original file line number Diff line number Diff line change @@ -852,8 +852,8 @@ A literal pattern corresponds to most
852852
853853The rule ``strings `` and the token ``NUMBER `` are defined in the
854854:doc: `standard Python grammar <./grammar >`. Triple-quoted strings are
855- supported. Raw strings and byte strings are supported. :ref: `f-strings ` are
856- not supported.
855+ supported. Raw strings and byte strings are supported. :ref: `f-strings `
856+ and :ref: ` t-strings ` are not supported.
857857
858858The forms ``signed_number '+' NUMBER `` and ``signed_number '-' NUMBER `` are
859859for expressing :ref: `complex numbers <imaginary >`; they require a real number
You can’t perform that action at this time.
0 commit comments