]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129502: Fix handling errors in ctypes callbacks (GH-129504)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 31 Jan 2025 13:30:19 +0000 (15:30 +0200)
committerGitHub <noreply@github.com>
Fri, 31 Jan 2025 13:30:19 +0000 (15:30 +0200)
commit9d63ae5fe52d95059ab1bcd4cbb1f9e17033c897
tree84f041981a5ccfa0bf098c6fe339644d732ee077
parent3447f4a56a71a4017e55d8f46160a63f111ec373
gh-129502: Fix handling errors in ctypes callbacks (GH-129504)

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.
Misc/NEWS.d/next/Library/2025-01-31-11-14-05.gh-issue-129502.j_ArNo.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c