Moved the deprecation statement to a place that makes more sense. Thanks Mike Miller.

This commit is contained in:
Eric V. Smith 2015-08-11 09:32:15 -04:00
parent 5552ce3603
commit 64873d50e1
1 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,9 @@ Formatting. In this PEP, such strings will be refered to as
"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 @@ values. Some examples are::
>>> 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