On Mon, Oct 12, 2020 at 09:40:40PM +1100, Steven D'Aprano wrote:

> Using the proposed syntax, both of these would be written as:
> 
>     try:
>         ...
>     except A try:
>         ...
>     except B:
>         ...
>     except C:
>         ...
> 
> with no way of telling whether the "except B" goes with the outer try or 
> the inner try.

Oops, sorry, that's a typo, I meant the "except C".


-- 
Steve
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/3OVQOZ6GGPIVJAP7SCL6ACB5YBLMSU62/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to