-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
python/cpython#103792 modified contextlib.suppress()
to support ExceptionGroup
s, by removing suppressed exceptions. If there are no remaining exceptions in the group it's caught; otherwise the remainder is re-raised.
It seems useful to provide this behavior to exceptiongroup
users on Python < 3.12 (notably including 3.11, where ExceptionGroup
is built in but suppress()
did not handle it).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request