summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMatthieu Dartiailh <marul@laposte.net>2022-04-05 13:47:13 (GMT)
committerGitHub <noreply@github.com>2022-04-05 13:47:13 (GMT)
commitaa0f056a00c4bcaef83d729e042359ddae903382 (patch)
tree45b026af73776c5f38423e44b989df335f52f405 /Misc
parentf1606a5ba50bdc4e7d335d62297b4b4043a25e6e (diff)
downloadcpython-aa0f056a00c4bcaef83d729e042359ddae903382.zip
cpython-aa0f056a00c4bcaef83d729e042359ddae903382.tar.gz
cpython-aa0f056a00c4bcaef83d729e042359ddae903382.tar.bz2
bpo-47212: Improve error messages for un-parenthesized generator expressions (GH-32302)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst b/Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst
new file mode 100644
index 0000000..8f1f6b6
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2022-04-05-11-29-21.bpo-47212.leF4pz.rst
@@ -0,0 +1,3 @@
+Raise :exc:`IndentationError` instead of :exc:`SyntaxError` for a bare
+``except`` with no following indent. Improve :exc:`SyntaxError` locations for
+an un-parenthesized generator used as arguments. Patch by Matthieu Dartiailh.