]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: finalize_modules_clear_weaklist() uses _PyWeakref_GET_REF() (#105971)
authorVictor Stinner <vstinner@python.org>
Wed, 21 Jun 2023 19:50:20 +0000 (21:50 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 19:50:20 +0000 (21:50 +0200)
commit4328dc646517f9251bdf6c827014f01c5229e8d9
treef0b5d3b96cd8f569ff72e55fd7e6e66985d8038d
parentfc32522b081c895f3798e4a16788b800cff08166
gh-105927: finalize_modules_clear_weaklist() uses _PyWeakref_GET_REF() (#105971)

finalize_modules_clear_weaklist() now holds a strong reference to the
module longer than before: replace PyWeakref_GET_OBJECT() with
_PyWeakref_GET_REF().
Include/internal/pycore_moduleobject.h
Objects/moduleobject.c
Python/pylifecycle.c