You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
contextlib.suppress does not support ExceptionGroups #103791
The user's intent is to suppress the latter case, too. It should work just as well, removing ValueError instances from the exception group. If it ends up empty, nothing gets raised. Otherwise, an ExceptionGroup should be re-raised with the remaining exceptions. For instance:
Activity
pythongh-103791: Make contextlib.suppress also act on exceptions with…
gh-103791: Make contextlib.suppress also act on exceptions within an …
Merge branch 'main' into superopt_spec
gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#1…
pythongh-103791: handle `BaseExceptionGroup` in `contextlib.suppress(…
[3.12] gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress…
pythongh-103791: handle `BaseExceptionGroup` in `contextlib.suppress(…
pythongh-103791: handle `BaseExceptionGroup` in `contextlib.suppress(…