@@ -561,9 +561,9 @@ escapes are not treated specially.
561561 single: f'; formatted string literal
562562 single: f"; formatted string literal
563563
564- A string literal with ``'f' `` or ``'F' `` in its prefix is a
565- :dfn: `formatted string literal `; see :ref: `f-strings `. The ``'f' `` may be
566- combined with ``'r' ``, but not with ``'b' `` or ``'u' ``, therefore raw
564+ A string literal with ``f `` or ``F `` in its prefix is a
565+ :dfn: `formatted string literal `; see :ref: `f-strings `. The ``f `` may be
566+ combined with ``r ``, but not with ``b `` or ``u ``, therefore raw
567567formatted strings are possible, but formatted bytes literals are not.
568568
569569In triple-quoted literals, unescaped newlines and quotes are allowed (and are
@@ -756,7 +756,7 @@ f-strings
756756.. versionadded :: 3.6
757757
758758A :dfn: `formatted string literal ` or :dfn: `f-string ` is a string literal
759- that is prefixed with ``'f' `` or ``'F' ``. These strings may contain
759+ that is prefixed with ``f `` or ``F ``. These strings may contain
760760replacement fields, which are expressions delimited by curly braces ``{} ``.
761761While other string literals always have a constant value, formatted strings
762762are really expressions evaluated at run time.
@@ -922,7 +922,7 @@ t-strings
922922.. versionadded :: 3.14
923923
924924A :dfn: `template string literal ` or :dfn: `t-string ` is a string literal
925- that is prefixed with ``'t' `` or ``'T' ``. These strings follow the same
925+ that is prefixed with ``t `` or ``T ``. These strings follow the same
926926syntax and evaluation rules as :ref: `formatted string literals <f-strings >`, with
927927the following differences:
928928
@@ -950,9 +950,9 @@ the following differences:
950950 :attr: `~string.templatelib.Template.interpolations ` attribute will also
951951 contain an ``Interpolation `` instance for the expression. By default, the
952952 :attr: `~string.templatelib.Interpolation.conversion ` attribute will be set to
953- ``'r' `` (i.e. :func: `repr `), unless there is a conversion explicitly specified
954- (in which case it overrides the default) or a format specifier is provided (in
955- which case, the ``conversion `` defaults to ``None ``).
953+ ``'r' `` (that is, :func: `repr `), unless there is a conversion explicitly
954+ specified (in which case it overrides the default) or a format specifier is
955+ provided (in which case, the ``conversion `` defaults to ``None ``).
956956
957957
958958.. _numbers :
0 commit comments