]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: type_from_ref() uses _PyWeakref_GET_REF() (#105963)
authorVictor Stinner <vstinner@python.org>
Wed, 21 Jun 2023 14:35:58 +0000 (16:35 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 14:35:58 +0000 (16:35 +0200)
commitfc32522b081c895f3798e4a16788b800cff08166
treea159b7d705206dbe294636358d0e9d86e8b64eb4
parent2178bbc12195104e94995ec075ad5f7c69d1ec78
gh-105927: type_from_ref() uses _PyWeakref_GET_REF() (#105963)

type_from_ref() now returns a strong reference to the type, instead
of a borrowed reference: replace PyWeakref_GET_OBJECT() with
_PyWeakref_GET_REF().
Objects/typeobject.c