-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
added exception groups #25430
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
added exception groups #25430
Changes from 1 commit
af3c3f7
c1d592f
187b10d
a6d6d71
9ffd6e5
5f05645
0a9e6b5
aed5cff
291be68
5b3dfe2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -2,7 +2,9 @@ BaseException | |||
| +-- SystemExit | ||||
| +-- KeyboardInterrupt | ||||
| +-- GeneratorExit | ||||
| +-- BaseExceptionGroup | ||||
| +-- Exception | ||||
| +-- ExceptionGroup | ||||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately we can't express here that ExceptionGroup subclasses BaseExceptionGroup as well.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a note in parentheses?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There seems to be an unused feature that interprets whatever is in "(..)" as a platform name and then ignores any exception where the platform is not the current platform (so it won't break the test but will weaken it). But "[...]" seems ok - anything in them appears to be ignored, and when I changed ExceptionGroup to something invalid the test failed. cpython/Lib/test/test_baseexception.py Line 49 in 8bbfeb3
|
||||
| +-- StopIteration | ||||
| +-- StopAsyncIteration | ||||
| +-- ArithmeticError | ||||
|
|
||||
Uh oh!
There was an error while loading. Please reload this page.