[3.12] gh-129502: Fix handling errors in ctypes callbacks (GH-129504) (#129639)
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 9d63ae5fe52d95059ab1bcd4cbb1f9e17033c897)
S
Serhiy Storchaka committed
86451b146ac2a42a2ceb602f9d10c769d39ab69d
Parent: 4879257
Committed by GitHub <noreply@github.com>
on 2/4/2025, 2:04:46 PM