tiny bit more clarity about the format specifiers in PEP 498 (#515)
This commit is contained in:
parent
11c7319b1e
commit
eff08db773
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue