From ec62b109b3e3018fd9254a16b3bef5322c22478c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 24 May 2023 13:21:15 +0300 Subject: [PATCH] gh-102856: Add missing quote to fix doctest (GH-104852) (cherry picked from commit 3e97c001711ab68e3d54d65e264cb5c37fefbec0) Co-authored-by: Hugo van Kemenade --- Doc/whatsnew/3.12.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 27fbb21c33420a..265c9f84e8fcc0 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -157,7 +157,7 @@ same quote as the containing f-string. Let's cover these in detail: >>> songs = ['Take me back to Eden', 'Alkaline', 'Ascensionism'] >>> f"This is the playlist: {", ".join(songs)}" - 'This is the playlist: Take me back to Eden, Alkaline, Ascensionism + 'This is the playlist: Take me back to Eden, Alkaline, Ascensionism' Note that before this change there was no explicit limit in how f-strings can be nested, but the fact that string quotes cannot be reused inside the