summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-06-28 00:15:28 (GMT)
committerGitHub <noreply@github.com>2020-06-28 00:15:28 (GMT)
commitdab533d0ee067159812d4ea51f6fbbb1bd37d8b7 (patch)
treeb6f71930c913781bc1e4d81ee24f6349087e9844 /Misc
parent102ca529ef5d45b9ef70a341705ddf2577914135 (diff)
downloadcpython-dab533d0ee067159812d4ea51f6fbbb1bd37d8b7.zip
cpython-dab533d0ee067159812d4ea51f6fbbb1bd37d8b7.tar.gz
cpython-dab533d0ee067159812d4ea51f6fbbb1bd37d8b7.tar.bz2
[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)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-06-22-13-22-30.bpo-41076.eWYw2N.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-06-22-13-22-30.bpo-41076.eWYw2N.rst b/Misc/NEWS.d/next/Core and Builtins/2020-06-22-13-22-30.bpo-41076.eWYw2N.rst
new file mode 100644
index 0000000..f13560a
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-06-22-13-22-30.bpo-41076.eWYw2N.rst
@@ -0,0 +1 @@
+Pre-feed the parser with the location of the f-string expression, not the f-string itself, which allows us to skip the shifting of the AST node locations after the parsing is completed. \ No newline at end of file