[Python-checkins] peps: Simplified example.
eric.smith
python-checkins at python.org
Tue Sep 22 23:57:34 CEST 2015
https://hg.python.org/peps/rev/f9313604d92a
changeset: 6098:f9313604d92a
user: Eric V. Smith <eric at trueblade.com>
date: Tue Sep 22 17:57:36 2015 -0400
summary:
Simplified example.
files:
pep-0498.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -294,11 +294,11 @@
For example, this code::
- f'abc{expr1:spec1}{expr2!r:spec2}def{expr3!s}ghi'
+ f'abc{expr1:spec1}{expr2!r:spec2}def{expr3}ghi'
Might be be evaluated as::
- 'abc' + format(expr1, spec1) + format(repr(expr2), spec2) + 'def' + format(str(expr3)) + 'ghi'
+ 'abc' + format(expr1, spec1) + format(repr(expr2), spec2) + 'def' + format(expr3) + 'ghi'
Expression evaluation
---------------------
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list