[Python-checkins] F-strings docs: link to Format Specifiers (GH-4888)

Mariatta webhook-mailer at python.org
Fri Dec 15 13:07:04 EST 2017


https://github.com/python/cpython/commit/d924fa523df766dbf2f8b6a28ae502eb3433bfe5
commit: d924fa523df766dbf2f8b6a28ae502eb3433bfe5
branch: master
author: Mariatta <Mariatta at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2017-12-15T10:07:01-08:00
summary:

F-strings docs: link to Format Specifiers (GH-4888)

Link to the Format Specification Mini Language section from f-strings' documentation.

files:
M Doc/reference/lexical_analysis.rst

diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index ee3fbc13e2b..86e55e4d9c8 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -656,7 +656,8 @@ the final value of the whole string.
 
 Top-level format specifiers may include nested replacement fields.
 These nested fields may include their own conversion fields and
-format specifiers, but may not include more deeply-nested replacement fields.
+:ref:`format specifiers <formatspec>`, but may not include more
+deeply-nested replacement fields.
 
 Formatted string literals may be concatenated, but replacement fields
 cannot be split across literals.



More information about the Python-checkins mailing list