-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-46219, 46221: simplify except* implementation following exc_info changes. Move helpers to exceptions.c. Do not assume that exception groups are truthy. #30289
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
Conversation
This reverts commit 1c05b92.
@erlend-aasland would you have time to review this? It’s mostly moving code from ceval.c to exceptions.c. Would be nice to get it into the next alpha release (due to be cut tomorrow) so it gets tested in close to final form. |
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.
I've looked at the changes in ceval and the compiler with good help from Irit. LGTM. Moving exception helpers to exception.c is a nice "cleanup".
Thank you @erlend-aasland, @brandtbucher and @ericsnowcurrently for the reviews (on this an on PR30302 which contained the functional changes in this PR). |
The functional except* changes were reviewed under PR30302 - I think they should be split out and not committed together with the POP_EXCEPT_AND_RERAISE change.
Otherwise, this just moves code from ceval.c to exceptions.c and sets me up to get a notification for PRs touching exceptions and tracebacks.
https://bugs.python.org/issue46221
https://bugs.python.org/issue46219