-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesrelease-blocker
Description
Since #29513, syntax errors in else
and elif
blocks, like:
if 1:
pass
else:
This is invalid syntax (sic)
are reported at the else
:
File "/tmp/repro.py", line 3
else:
^^^^^^
SyntaxError: 'else' must match a valid statement here
This is quite unhelpful when a small typo is hiding in a large block.
@lysnikolaou, could you take a look?
Linked PRs
Eclips4, nineteendo, shubham-pyc, sobolevn and wyz23x2lysnikolaou
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixesrelease-blocker
Projects
Status
Done