From: Delgan <4193924+Delgan@users.noreply.github.com> Date: Sun, 10 Sep 2023 10:55:56 +0000 (+0200) Subject: Fix "FSTRING_MIDDLE" typo in py312 "What's New" (#109222) X-Git-Tag: v3.13.0a1~510 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dd6a86c4ee604b331ed739c2508b0d0114993c6;p=thirdparty%2FPython%2Fcpython.git Fix "FSTRING_MIDDLE" typo in py312 "What's New" (#109222) --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index bdccbe1012c9..a46c913c4997 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1599,7 +1599,7 @@ Changes in the Python API functions is now changed due to the changes introduced in :pep:`701`. This means that ``STRING`` tokens are not emitted any more for f-strings and the tokens described in :pep:`701` are now produced instead: ``FSTRING_START``, - ``FSRING_MIDDLE`` and ``FSTRING_END`` are now emitted for f-string "string" + ``FSTRING_MIDDLE`` and ``FSTRING_END`` are now emitted for f-string "string" parts in addition to the appropriate tokens for the tokenization in the expression components. For example for the f-string ``f"start {1+1} end"`` the old version of the tokenizer emitted::