Skip to content

[3.13] gh-129502: Fix handling errors in ctypes callbacks (GH-129504)#129517

Merged
Yhg1s merged 2 commits intopython:3.13from
miss-islington:backport-9d63ae5-3.13
Feb 4, 2025
Merged

[3.13] gh-129502: Fix handling errors in ctypes callbacks (GH-129504)#129517
Yhg1s merged 2 commits intopython:3.13from
miss-islington:backport-9d63ae5-3.13

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 31, 2025

Unlikely errors in preparing arguments for ctypes callback are now
handled in the same way as errors raised in the callback of in converting
the result of the callback -- using sys.unraisablehook() instead of
sys.excepthook() and not setting sys.last_exc and other variables.
(cherry picked from commit 9d63ae5)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…9504)

Unlikely errors in preparing arguments for ctypes callback are now
handled in the same way as errors raised in the callback of in converting
the result of the callback -- using sys.unraisablehook() instead of
sys.excepthook() and not setting sys.last_exc and other variables.
(cherry picked from commit 9d63ae5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@Yhg1s Yhg1s enabled auto-merge (squash) February 3, 2025 23:46
@Yhg1s Yhg1s merged commit 506c76f into python:3.13 Feb 4, 2025
32 checks passed
@miss-islington miss-islington deleted the backport-9d63ae5-3.13 branch January 2, 2026 16:59
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.

3 participants