-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes #28569
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
Merged
iritkatriel
merged 40 commits into
python:main
from
iritkatriel:bpo-45292-ExceptionGroup
Oct 22, 2021
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
2b5800f
bpo-45292: [PEP 654] added ExceptionGroup and BaseExceptionGroup (did…
iritkatriel 0ac0dfd
📜🤖 Added by blurb_it.
blurb-it[bot] b7ee952
rename exceptions_added_in_python_3 --> exceptions_not_in_python_2
iritkatriel a57f883
Use PyArg_ParseTuple's format string to check for type of EG message
iritkatriel 62a7b3c
improve error messages for second constructor arg
iritkatriel 235504b
nested exception must be instance not type
iritkatriel b7889df
tweak test
iritkatriel 763a387
expect msg to always be valid
iritkatriel 8912054
make [Base]ExceptionGroup generic types
iritkatriel 41d4799
tidy up test_pickle
iritkatriel 488ad7c
add test that exception group is not subscriptable (generic type)
iritkatriel 1de7ca5
implement suggestions from Erlend
iritkatriel 1147f44
add comment
iritkatriel c71aff7
part of updates re Guido's review of the tests
iritkatriel d3ba995
Part 1 of Gregory's review: better error messaages, public GC API, bo…
iritkatriel fe5d611
Gregory's suggestion to convert excs to Tuple at the beginning of the…
iritkatriel ed343de
rename constructor args to match their python names
iritkatriel 1af4e53
empty-exceptions error changed from TypeError to ValueError
iritkatriel bc57273
decref bases in create_exception_group_class
iritkatriel a21c174
remove redundant check
iritkatriel 0e46247
add _PyBaseExceptionGroup_Check
iritkatriel 84c52ae
Fix error checking. Exception --> assertion
iritkatriel 1813827
add assertions, convert runtime check to assertion
iritkatriel 3201ab9
NULL is not error for GetContext/SetContext etc (no need to check)
iritkatriel 37d8df2
cast orig only once in exceptiongroup_subset
iritkatriel 0099c24
assume (and assert) that eg->excs is a tuple, use Tuple apis
iritkatriel bab699b
no need for the fancy _exceptiongroup_matcher struct
iritkatriel 0603d31
move ExceptionGroup type definition to interpreter state
iritkatriel db8d0b2
clear ExceptionGroupType before interpreter state
iritkatriel ba762bc
remove PyExc_ExceptionGroup from stable abi and header
iritkatriel 005cf86
do type cast only once
iritkatriel db8c3ea
add comments and assertions
iritkatriel 7252b3a
remove inefficient packing-unpacking of match-rest pairs in a tuple
iritkatriel ea68786
Py_CLEAR --> Py_DECREF
iritkatriel efa9adb
fix segfault
iritkatriel cd61b77
clear match and rest in exceptiongroup_split_recursive when there is …
iritkatriel c463d4c
make the tests less crazy
iritkatriel 4d76ccc
make regen-limited-abi
iritkatriel 26b0426
use :pep: syntax in the news entry.
gpshead dbd72d1
add recursion guard in split
iritkatriel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
make [Base]ExceptionGroup generic types
- Loading branch information
commit 8912054607c3cc83da8517b2ee56c5b250d8a16c
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.