[Python-checkins] peps: Improve some wording.

eric.smith python-checkins at python.org
Sat Aug 29 22:02:16 CEST 2015


https://hg.python.org/peps/rev/1b81820a0131
changeset: 6009:1b81820a0131
user: Eric V. Smith <eric at trueblade.com>
date: Sat Aug 29 16:02:17 2015 -0400
summary:
 Improve some wording.
files:
 pep-0498.txt | 9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -102,8 +102,8 @@
 >>> f'The value is {value}.'
 'The value is 80.'
 
-f-strings provide a concise, readable way to include expressions
-inside strings.
+f-strings provide a concise, readable way to include the value of
+Python expressions inside strings.
 
 In this sense, string.Template and %-formatting have similar
 shortcomings to str.format(), but also support fewer formatting
@@ -643,9 +643,8 @@
 The same expression used multiple times
 ---------------------------------------
 
-Every expression in braces in an f-string is evaluated exactly
-once. If the same expression is used more than once in the same
-f-string, it will be evaluated multiple times. However, it's undefined
+Every expression in braces in an f-string is evaluated exactly once
+for each time it appears in the f-string. However, it's undefined
 which result will show up in the resulting string value. For purposes
 of this section, two expressions are the same if they have the exact
 same literal text defining them. For example, '{i}' and '{i}' are the
-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /