]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Sat, 27 Jun 2020 23:41:48 +0000 (02:41 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 23:41:48 +0000 (00:41 +0100)
commit1f0f4abb110b9fbade6175842b6a26ab0b8df6dd
treef967a28bdffe1656593c04ae0634e7cc6b3bf566
parent89e82c4a6285c89c054980591c078245a5cc6337
bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)

This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.
Misc/NEWS.d/next/Core and Builtins/2020-06-22-13-22-30.bpo-41076.eWYw2N.rst [new file with mode: 0644]
Parser/pegen.c
Parser/string_parser.c
Python/importlib.h
Python/importlib_external.h