[Python-checkins] bpo-31487: Update F-strings doc example (GH-3627)

Mariatta webhook-mailer at python.org
Sun Sep 17 10:43:34 EDT 2017


https://github.com/python/cpython/commit/63c591c0b0b57870a606e8edc59afe6264e7504d
commit: 63c591c0b0b57870a606e8edc59afe6264e7504d
branch: master
author: Mariatta <Mariatta at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2017-09-17T07:43:31-07:00
summary:

bpo-31487: Update F-strings doc example (GH-3627)

Shorten the comment to: "using integer format specifier"

files:
M Doc/reference/lexical_analysis.rst

diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index baf1f09dff2..684119a4439 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -680,7 +680,7 @@ Some examples of formatted string literals::
    >>> f"{today:%b %d, %Y}"  # using date format specifier
    'January 27, 2017'
    >>> number = 1024
-   >>> f"{number:#0x}"  # using integer presentation type as format specifier
+   >>> f"{number:#0x}"  # using integer format specifier
    '0x400'
 
 A consequence of sharing the same syntax as regular string literals is



More information about the Python-checkins mailing list