mirror of https://github.com/python/cpython
bpo-31487: Update F-strings doc example (GH-3627)
Shorten the comment to: "using integer format specifier"
This commit is contained in:
parent
30b61b51e0
commit
63c591c0b0
|
@ -680,7 +680,7 @@ Some examples of formatted string literals::
|
||||||
>>> f"{today:%b %d, %Y}" # using date format specifier
|
>>> f"{today:%b %d, %Y}" # using date format specifier
|
||||||
'January 27, 2017'
|
'January 27, 2017'
|
||||||
>>> number = 1024
|
>>> number = 1024
|
||||||
>>> f"{number:#0x}" # using integer presentation type as format specifier
|
>>> f"{number:#0x}" # using integer format specifier
|
||||||
'0x400'
|
'0x400'
|
||||||
|
|
||||||
A consequence of sharing the same syntax as regular string literals is
|
A consequence of sharing the same syntax as regular string literals is
|
||||||
|
|
Loading…
Reference in New Issue