summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-28 20:57:13 (GMT)
committerGitHub <noreply@github.com>2021-03-28 20:57:13 (GMT)
commit24ba0ea9e0160cc85e0fa24f32b1651c8b3a24b0 (patch)
tree170cc6491538eb0fe31ffed015bb47953dca6263
parente516290976626cf8535b88a14b1b34e37f88a78a (diff)
downloadcpython-24ba0ea9e0160cc85e0fa24f32b1651c8b3a24b0.zip
cpython-24ba0ea9e0160cc85e0fa24f32b1651c8b3a24b0.tar.gz
cpython-24ba0ea9e0160cc85e0fa24f32b1651c8b3a24b0.tar.bz2
[3.8] bpo-31907: [doc] clarify that str.format() does not support arbitrary expressions (GH-25053) (GH-25056)
(cherry picked from commit fb1d01b9630b5069fe975f16e07a027d90b89434) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> Automerge-Triggered-By: GH:ericvsmith
-rw-r--r--Doc/library/string.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 54786d0..e55884d 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -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