[Python-checkins] peps: Spell checked.

barry.warsaw python-checkins at python.org
Sat Sep 5 19:50:30 CEST 2015


https://hg.python.org/peps/rev/6d0a3598d22f
changeset:   6040:6d0a3598d22f
user:        Barry Warsaw <barry at python.org>
date:        Sat Sep 05 13:50:27 2015 -0400
summary:
  Spell checked.

files:
  pep-0498.txt |  10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -18,7 +18,7 @@
 [#]_. Each of these methods have their advantages, but in addition
 have disadvantages that make them cumbersome to use in practice. This
 PEP proposed to add a new string formatting mechanism: Literal String
-Interpolation. In this PEP, such strings will be refered to as
+Interpolation. In this PEP, such strings will be referred to as
 "f-strings", taken from the leading character used to denote such
 strings, and standing for "formatted strings".
 
@@ -212,7 +212,7 @@
 Similar to ``str.format()``, optional format specifiers maybe be
 included inside the f-string, separated from the expression (or the
 type conversion, if specified) by a colon. If a format specifier is
-not provied, an empty string is used.
+not provided, an empty string is used.
 
 So, an f-string looks like::
 
@@ -223,7 +223,7 @@
 of the f-string.
 
 Expressions cannot contain ``':'`` or ``'!'`` outside of strings or
-parens, brackets, or braces. The exception is that the ``'!='``
+parentheses, brackets, or braces. The exception is that the ``'!='``
 operator is allowed as a special case.
 
 Escape sequences
@@ -437,7 +437,7 @@
 Because the compiler must be involved in evaluating the expressions
 contained in the interpolated strings, there must be some way to
 denote to the compiler which strings should be evaluated. This PEP
-chose a leading ``'f'`` character preceeding the string literal. This
+chose a leading ``'f'`` character preceding the string literal. This
 is similar to how ``'b'`` and ``'r'`` prefixes change the meaning of
 the string itself, at compile time. Other prefixes were suggested,
 such as ``'i'``. No option seemed better than the other, so ``'f'``
@@ -621,7 +621,7 @@
 practical use for a plain lambda in an f-string expression, this is
 not seen as much of a limitation.
 
-If you feel you must use lambdas, they may be used inside of parens::
+If you feel you must use lambdas, they may be used inside of parentheses::
 
   >>> f'{(lambda x: x*2)(3)}'
   '6'

-- 
Repository URL: https://hg.python.org/peps


More information about the Python-checkins mailing list