
Feb. 26, 2021
11:47 p.m.
You still need except* for the (unusual?) case where the ExceptionGroup contains multiple individual Exceptions, and you want them all to be processed. (This possibility is the justification for the PEP, but the difficulty of associating an exception with the specific task that raised it suggests that exceptions are still intended to be rare, rather than a back-channel communications band.) As written, you also need except* to unwrap, so that ExceptionGroup(ValueError) can be handled by "except ValueError" instead of "except RuntimeError" (or except ExceptionGroup) followed by cause-unwrapping. -jJ