Skip to content

Commit d935dd6

Browse files
committed
Find any occurrences of f-strings that should also mention t-strings.
1 parent 1f30739 commit d935dd6

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/string.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ Format String Syntax
198198
The :meth:`str.format` method and the :class:`Formatter` class share the same
199199
syntax for format strings (although in the case of :class:`Formatter`,
200200
subclasses 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
308309
format 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`).
310311
They can also be passed directly to the built-in
311312
:func:`format` function. Each formattable type may define how the format
312313
specification is to be interpreted.

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,8 @@ A literal pattern corresponds to most
852852

853853
The 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

858858
The forms ``signed_number '+' NUMBER`` and ``signed_number '-' NUMBER`` are
859859
for expressing :ref:`complex numbers <imaginary>`; they require a real number

0 commit comments

Comments
 (0)