tiny bit more clarity about the format specifiers in PEP 498 (#515)

This commit is contained in:
Christopher H.Barker, PhD 2017-12-15 14:07:55 -08:00 committed by Brett Cannon
parent 11c7319b1e
commit eff08db773
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ conversions are applied before the call to ``format()``. The only
reason to use ``'!s'`` is if you want to specify a format specifier
that applies to ``str``, not to the type of the expression.
F-strings use the same format specifier mini-language as ``str.format``.
Similar to ``str.format()``, optional format specifiers maybe be
included inside the f-string, separated from the expression (or the
type conversion, if specified) by a colon. If a format specifier is