[issue45834] Move runtime except: check to the parser

2022-01-20 Thread Irit Katriel


Irit Katriel  added the comment:

We decided on the PR that this is not worth doing.

--
resolution:  -> rejected
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45834] Move runtime except: check to the parser

2021-11-18 Thread Pablo Galindo Salgado


Change by Pablo Galindo Salgado :


--
keywords: +patch
pull_requests: +27858
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29625

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45834] Move runtime except: check to the parser

2021-11-18 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Fantastic point, Irit! Will try to make s prototype this week

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45834] Move runtime except: check to the parser

2021-11-17 Thread Irit Katriel


New submission from Irit Katriel :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com