On Sat, Mar 27, 2021 at 3:56 PM Greg Ewing <greg.ew...@canterbury.ac.nz>
wrote:

> While we're talking about compelling use cases, does anyone have an
> actual, concrete use case for the proposed "except *" feature that's
> strong enough to justify new syntax?
>
> I'm fine with having ExceptionGroup as a built-in type. I'm not fine
> with adding new syntax that will apparently be used only in rare
> circumstances.
>
> Can code that's aware of the possibility of getting an ExceptionGroup
> not simply catch it as a normal exception and then pick it apart? Do
> we really need a whole new piece of machinery for this?
>

As Irit already wrote, the code to do this correctly is increasingly subtle
and without special  syntax it becomes too easy to do it wrong. Also note
that multiple `except *` clauses can all run, since they handle (disjunct)
different subsets of the group.

-- 
--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/YI225AFPI7I5R6IMLPGXDI5SP5D6LPL2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to