Skip to content
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

Merged
merged 2 commits into from
Dec 27, 2021

Conversation

iritkatriel
Copy link
Member

… makes auto selection between ExceptionGroup and BaseExceptionGroup

… makes auto selection between ExceptionGroup and BaseExceptionGroup
@iritkatriel iritkatriel marked this pull request as draft December 22, 2021 18:33
Copy link
Member

@gvanrossum gvanrossum left a 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 BaseExceptions but not Exceptions.

Copy link
Member

@gvanrossum gvanrossum left a 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.

Copy link
Member

@warsaw warsaw left a 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!

@Yhg1s
Copy link
Member

Yhg1s commented Dec 27, 2021

The (2022) SC approves.

@iritkatriel iritkatriel marked this pull request as ready for review December 27, 2021 21:50
@iritkatriel iritkatriel merged commit f2f542d into python:main Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants