]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.8] bpo-31907: [doc] clarify that str.format() does not support arbitrary expressio...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Mar 2021 20:57:13 +0000 (13:57 -0700)
committerGitHub <noreply@github.com>
Sun, 28 Mar 2021 20:57:13 +0000 (13:57 -0700)
(cherry picked from commit fb1d01b9630b5069fe975f16e07a027d90b89434)

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Automerge-Triggered-By: GH:ericvsmith
Doc/library/string.rst

index 54786d0c2ab0dfb3247f2ea406d3793f0b9a06c6..e55884d28d63361f6862fb4bf77eeb9164a26ad4 100644 (file)
@@ -188,8 +188,8 @@ Format String Syntax
 The :meth:`str.format` method and the :class:`Formatter` class share the same
 syntax for format strings (although in the case of :class:`Formatter`,
 subclasses can define their own format string syntax).  The syntax is
-related to that of :ref:`formatted string literals <f-strings>`, but
-there are differences.
+related to that of :ref:`formatted string literals <f-strings>`, but it is
+less sophisticated and, in particular, does not support arbitrary expressions.
 
 .. index::
    single: {} (curly brackets); in string formatting