This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel, lys.nikolaou, pablogsal
Date 2021-11-17.21:27:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637184477.04.0.544016485338.issue45834@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-11-17 21:27:57iritkatrielsetrecipients: + iritkatriel, lys.nikolaou, pablogsal
2021-11-17 21:27:57iritkatrielsetmessageid: <1637184477.04.0.544016485338.issue45834@roundup.psfhosted.org>
2021-11-17 21:27:57iritkatriellinkissue45834 messages
2021-11-17 21:27:56iritkatrielcreate