KEMBAR78
GH-107724: Fix the signature of `PY_THROW` callback functions. by markshannon · Pull Request #107725 · python/cpython · GitHub
Skip to content

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 <carl@oddbird.net>
@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
…ythonGH-107725)

(cherry picked from commit 52fbcf6)

Co-authored-by: Mark Shannon <mark@hotpy.org>
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 <mark@hotpy.org>
@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