]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: _ctypes use PyWeakref_GetRef() (#105964)
authorVictor Stinner <vstinner@python.org>
Wed, 21 Jun 2023 14:34:27 +0000 (16:34 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 14:34:27 +0000 (16:34 +0200)
commit48d107a87d74b0e6662b0096454279a6066f7da4
tree4437924d56da149a072ba2005741a35f98da8572
parent74da6f7c9f7ace6ff5ee9a8e5abd10e28ebe90ae
gh-105927: _ctypes use PyWeakref_GetRef() (#105964)

Rename PyDict_GetItemProxy() to _PyDict_GetItemProxy() and mark it as
static. _PyDict_GetItemProxy() now returns a strong reference,
instead of a borrowed reference: replace PyWeakref_GET_OBJECT() with
_PyWeakref_GET_REF().
Modules/_ctypes/_ctypes.c