@@ -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
@@ -264,6 +265,8 @@ Some simple format string examples::
264265   "Weight in tons {0.weight}"       # 'weight' attribute of first positional arg 
265266   "Units destroyed: {players[0]}"   # First element of keyword argument 'players'. 
266267
268+ .. _formatstrings-conversion :
269+ 
267270The *conversion * field causes a type coercion before formatting.  Normally, the
268271job of formatting a value is done by the :meth: `~object.__format__ ` method of the value
269272itself.  However, in some cases it is desirable to force a type to be formatted
@@ -306,7 +309,7 @@ Format Specification Mini-Language
306309
307310"Format specifications" are used within replacement fields contained within a
308311format string to define how individual values are presented (see
309- :ref: `formatstrings `  and :ref: `f -strings `).
312+ :ref: `formatstrings `,  :ref: ` f-strings `,  and :ref: `t -strings `).
310313They can also be passed directly to the built-in
311314:func: `format ` function.  Each formattable type may define how the format
312315specification is to be interpreted.
@@ -789,10 +792,20 @@ Nesting arguments and more complex examples::
789792
790793
791794
792- .. _template-strings :
795+ .. _template-strings-pep292  :
793796
794- Template strings
795- ---------------- 
797+ Template strings ($-strings)
798+ ---------------------------- 
799+ 
800+ .. note ::
801+ 
802+    The feature described here was introduced in Python 2.4.  It is unrelated
803+    to, and should not be confused with, the newer
804+    :ref: `template strings  <template-strings >` and
805+    :ref: `t-string literal syntax  <t-strings >` introduced in Python 3.14.
806+    T-string literals evaluate to instances of a different
807+    :class: `~string.templatelib.Template ` class, found in the
808+    :mod: `string.templatelib ` module.
796809
797810Template strings provide simpler string substitutions as described in
798811:pep: `292 `.  A primary use case for template strings is for
0 commit comments