[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>
M
Miss Islington (bot) committed
82ac2be6b386b7d106a36262f1aa960f638bde8d
Parent: ed03895
Committed by GitHub <noreply@github.com>
on 6/11/2023, 8:25:27 PM