[Python-Dev] Re: PEP 654 except* formatting

2021年10月04日 07:35:59 -0700

> On 4 Oct 2021, at 15:00, Calvin Spealman <[email protected]> wrote:
> 
> It is difficult to understand why any special syntax is needed at all. 
> ExceptionGroup is still an exception class like any other, isn't it? Why 
> wouldn't the existing syntax suffice?
This is covered at length in the PEP. Those sections specifically address this:
https://www.python.org/dev/peps/pep-0654/#extend-except-to-handle-exception-groups
 
<https://www.python.org/dev/peps/pep-0654/#extend-except-to-handle-exception-groups>
https://www.python.org/dev/peps/pep-0654/#programming-without-except 
<https://www.python.org/dev/peps/pep-0654/#programming-without-except>
- Ł

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/FHEWFNSDNZRHADGD3I2VVW66Y7DSNEI7/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to