Skip to content

GH-107724: Fix the signature of PY_THROW callback functions. #107725

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
merged 5 commits into from
Aug 9, 2023

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Aug 7, 2023

Changes signature from callback(code: CodeType, offset: int) to callback(code: CodeType, offset: int, exc: BaseException)
to match all the other exception callback functions.

Co-authored-by: Carl Meyer <[email protected]>
@markshannon markshannon merged commit 52fbcf6 into python:main Aug 9, 2023
@miss-islington
Copy link
Contributor

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-107802 is a backport of this pull request to the 3.12 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.12 only security fixes label Aug 9, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 9, 2023
Yhg1s pushed a commit that referenced this pull request Aug 11, 2023
…GH-107725) (#107802)

GH-107724: Fix the signature of `PY_THROW` callback functions. (GH-107725)
(cherry picked from commit 52fbcf6)

Co-authored-by: Mark Shannon <[email protected]>
@markshannon markshannon deleted the fix-py-throw-signature branch September 26, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants