]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-85583: Add f-string index in tutorial/inputoutput.rst (GH-21681) (GH-126192)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 30 Oct 2024 17:36:11 +0000 (18:36 +0100)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 17:36:11 +0000 (10:36 -0700)
gh-85583: Add f-string index in tutorial/inputoutput.rst  (GH-21681)

* bpo-41411 fstring index in tutorial/inputoutput

To assist in searching for fstrings I have added an index

* Add newline

---------

(cherry picked from commit a3443c0e22a8623afe4c0518433b28afbc3a6df6)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/tutorial/inputoutput.rst

index 2e6fd419b2110692758a0a013c4ebfb3fb52143c..35b8c7cd8eb0498ab3bbe1e8aba3065f7eef178a 100644 (file)
@@ -100,6 +100,13 @@ yet another way to substitute values into strings, using placeholders like
 ``$x`` and replacing them with values from a dictionary, but offers much less
 control of the formatting.
 
+.. index::
+   single: formatted string literal
+   single: interpolated string literal
+   single: string; formatted literal
+   single: string; interpolated literal
+   single: f-string
+   single: fstring
 
 .. _tut-f-strings: