-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
PEP-654: clarify that BaseExceptionGroup is the factory function that… #2203
Conversation
… makes auto selection between ExceptionGroup and BaseExceptionGroup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO we should also add that the ExceptionGroup
constructor rejects exceptions that are BaseException
s but not Exception
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. You can take this to the SC (and @warsaw) now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting SC approval, but LGTM (with @gvanrossum 's suggestion). Thanks!
The (2022) SC approves. |
… makes auto selection between ExceptionGroup and BaseExceptionGroup