]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-105375: Improve error handling in _ctypes (GH-105593) (#105663)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Jun 2023 20:25:27 +0000 (13:25 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 20:25:27 +0000 (20:25 +0000)
commit82ac2be6b386b7d106a36262f1aa960f638bde8d
tree1f5a43e85a5cd7a33e86427d0efdf4bb2397b592
parented038953fc2316117a3eaad066b93b0348131fd8
[3.12] gh-105375: Improve error handling in _ctypes (GH-105593) (#105663)

Prevent repeated PyLong_FromVoidPtr() from possibly overwriting the
current exception.
(cherry picked from commit e8998e46a7ce8ad336e0941a6da6e50cb88d1e47)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Misc/NEWS.d/next/Library/2023-06-09-21-40-45.gh-issue-105375._sZilh.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c