[Python-Dev] Re: PEP 654 -- Exception Groups and except* : request for feedback for SC submission

2021年2月24日 21:26:30 -0800

On Wed, Feb 24, 2021 at 5:51 PM Jim J. Jewett <[email protected]> wrote:
> Are you saying that
>
> except *ValueError as e:
>
> will catch
>
> ValueError
> and
> ExceptionGroup(ValueError)
> but miss
> ExceptionGroup(ExceptionGroup(ValueError))
> ?
>
No, it will catch it regardless of how many levels of ExceptionGroup wrap
it (zero or more, in fact).
-- 
--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 -- [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/3XIBSH7IJDIAM2YMGI42ZWQSOIHTNW2R/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to