-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport changes to contextlib.suppress()
?
#91
Labels
enhancement
New feature or request
Comments
I wonder if |
Irit thinks it was an accident, so I'll have a PR up against CPython shortly. e: python/cpython#111910 |
Yep, I figured as much :) |
PR merged, will ship in Python 3.12.1 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python/cpython#103792 modified
contextlib.suppress()
to supportExceptionGroup
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, whereExceptionGroup
is built in butsuppress()
did not handle it).The text was updated successfully, but these errors were encountered: