diff --git a/pep-0498.txt b/pep-0498.txt index 0e97a5f78..4a5267d6e 100644 --- a/pep-0498.txt +++ b/pep-0498.txt @@ -294,11 +294,11 @@ mechanism that ``str.format()`` uses to convert values to strings. 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 ---------------------