From: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:26:29 +0000 (+0300) Subject: gh-85583: Add f-string index in tutorial/inputoutput.rst (GH-21681) X-Git-Tag: v3.14.0a2~241 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3443c0e22a8623afe4c0518433b28afbc3a6df6;p=thirdparty%2FPython%2Fcpython.git 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 --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Carol Willing --- diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 2e6fd419b211..35b8c7cd8eb0 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -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: