On Sun, Oct 3, 2021 at 11:28 AM Irit Katriel via Python-Dev <
python-dev@python.org> wrote:

> We can drop except. Say:
>
> try:
>   ..
> handle T1:
>    …
> handle T2:
>    …
>
> Or ‘catch’, or something else.
>

We're going around in circles. We considered 'catch' early on, but decided
against it since, comparing 'except E' and 'catch E', there would be no
good way to tell which is the recommended one (and the same would apply to
another single keyword like 'handle'). At least with 'except*', it's easy
to remember that this is a modified version of 'except', so it's probably
meant for a special case.

I also think that the bar should be pretty high before we reopen the
*syntax* -- the PEP was approved without anyone (neither the SC, nor
Nathaniel, nor anyone else) providing any feedback on the use of 'except
*'. So I think it's a bit late to be bikeshedding the syntax. This thread
was meant to solicit feedback on how to *format* it: does the space go
before or after the '*'.

-- 
--Guido van Rossum (python.org/~guido)
*Pronouns: he/him **(why is my pronoun here?)*
<http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/CVSZ6B3E7Q3O64RVD6T6VKHOXGQGV5QS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to