[Python-checkins] peps: Yet another attempt to clear up wording in this section.

eric.smith python-checkins at python.org
Sat Aug 29 23:45:29 CEST 2015


https://hg.python.org/peps/rev/0b996faa2381
changeset: 6012:0b996faa2381
user: Eric V. Smith <eric at trueblade.com>
date: Sat Aug 29 17:45:36 2015 -0400
summary:
 Yet another attempt to clear up wording in this section.
files:
 pep-0498.txt | 13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -650,10 +650,11 @@
 The same expression used multiple times
 ---------------------------------------
 
-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. This only
-matters for expressions with side effects.
+Every expression in an f-string is evaluated exactly once for each
+time it appears in the f-string. However, when the same expression
+appears more than once in an f-string, it's undefined which result
+will be used in the resulting string value. This only matters for
+expressions with side effects.
 
 For purposes of this section, two expressions are the same if they
 have the exact same literal text defining them. For example, ``'{i}'``
@@ -685,8 +686,8 @@
 
 This restriction is in place in order to allow for a possible future
 extension allowing translated strings, wherein the expression
-substitutions would be identified by their text values as they show up
-between the braces.
+substitutions would be identified by their text representations in the
+f-strings.
 
 References
 ==========
-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list

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