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

Mariatta webhook-mailer at python.org
Sun Sep 17 10:57:11 EDT 2017


https://github.com/python/cpython/commit/4f6bae9677c0e5398e64c503fd3c19cae94567da
commit: 4f6bae9677c0e5398e64c503fd3c19cae94567da
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2017-09-17T07:57:08-07:00
summary:

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

Shorten the comment to: "using integer format specifier"
(cherry picked from commit 63c591c0b0b57870a606e8edc59afe6264e7504d)

files:
M Doc/reference/lexical_analysis.rst

diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index 3305f460d4d..c2fd2b74caa 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