diff --git a/pep-0498.txt b/pep-0498.txt index 73b3612d0..1ac1d80eb 100644 --- a/pep-0498.txt +++ b/pep-0498.txt @@ -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