]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: Avoid calling PyWeakref_GET_OBJECT() (#105997)
authorVictor Stinner <vstinner@python.org>
Thu, 22 Jun 2023 20:31:31 +0000 (22:31 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Jun 2023 20:31:31 +0000 (22:31 +0200)
commit46a3190fcf8580f322047395408cd60feba67041
treef7a27fae83831b5ce9109f81506e7c5e5c9757e5
parentc38da1e3e19a7bf1053c6d52e730e970efeceff6
gh-105927: Avoid calling PyWeakref_GET_OBJECT() (#105997)

* Replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF().
* _sqlite/blob.c now holds a strong reference to the blob object
  while calling close_blob().
* _xidregistry_find_type() now holds a strong reference to registered
  while using it.
Modules/_sqlite/blob.c
Objects/weakrefobject.c
Python/pystate.c