]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054...
authorPablo Galindo <Pablogsal@gmail.com>
Sun, 28 Jun 2020 00:15:28 +0000 (01:15 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Jun 2020 00:15:28 +0000 (01:15 +0100)
commitdab533d0ee067159812d4ea51f6fbbb1bd37d8b7
treeb6f71930c913781bc1e4d81ee24f6349087e9844
parent102ca529ef5d45b9ef70a341705ddf2577914135
[3.9] bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054) (GH-21190)

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..
(cherry picked from commit 1f0f4abb110b9fbade6175842b6a26ab0b8df6dd)
Misc/NEWS.d/next/Core and Builtins/2020-06-22-13-22-30.bpo-41076.eWYw2N.rst [new file with mode: 0644]
Parser/pegen/parse_string.c
Parser/pegen/pegen.c
Python/importlib.h
Python/importlib_external.h