[New-bugs-announce] [issue45834] Move runtime except: check to the parser
Irit Katriel
report at bugs.python.org
Wed Nov 17 16:27:57 EST 2021
New submission from Irit Katriel <iritkatriel at gmail.com>:
The compiler has a runtime check that an "except:" without type can only be the last in the try block:
https://github.com/python/cpython/blob/15409c720be0503131713e3d3abc1acd0da07378/Python/compile.c#L3251
This could be detected by the parser instead.
----------
components: Parser
messages: 406495
nosy: iritkatriel, lys.nikolaou, pablogsal
priority: normal
severity: normal
status: open
title: Move runtime except: check to the parser
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45834>
_______________________________________
More information about the New-bugs-announce
mailing list