[Python-checkins] peps: Moved the deprecation statement to a place that makes more sense. Thanks Mike
eric.smith
python-checkins at python.org
Tue Aug 11 15:32:02 CEST 2015
https://hg.python.org/peps/rev/c9fdc3498a67
changeset: 5953:c9fdc3498a67
user: Eric V. Smith <eric at trueblade.com>
date: Tue Aug 11 09:32:15 2015 -0400
summary:
Moved the deprecation statement to a place that makes more sense. Thanks Mike Miller.
files:
pep-0498.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pep-0498.txt b/pep-0498.txt
--- a/pep-0498.txt
+++ b/pep-0498.txt
@@ -22,6 +22,9 @@
"f-strings", taken from the leading character used to denote such
strings.
+This PEP does not propose to remove or deprecate any of the existing
+string formatting mechanisms.
+
f-strings provide a way to combine string literals with Python
expressions, using a minimal syntax. It should be noted that an
f-string is really an expression evaluated at run time, not a constant
@@ -38,9 +41,6 @@
>>> f'He said his name is {name!r}.'
"He said his name is 'Fred'."
-This PEP does not propose to remove or deprecate any of the existing
-string formatting mechanisms.
-
A similar feature was proposed in PEP 215 [#]_. PEP 215 proposed to
support a subset of Python expressions, and did not support the
type-specific string formatting (the __format__ method) which was
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list