]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: Refactor weakrefobject.c (#105928)
authorVictor Stinner <vstinner@python.org>
Mon, 19 Jun 2023 23:31:17 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Mon, 19 Jun 2023 23:31:17 +0000 (23:31 +0000)
commit7f97c8e367869e2aebe9f28bc5f8d4ce36448878
tree5d7fdc56cf6f71b13c0376a7ab1563334433e564
parenta5c2ad0c3d23d2b1e61ab8e0d7ee64f7e1288547
gh-105927: Refactor weakrefobject.c (#105928)

* Rename proxy_checkref() to proxy_check_ref().
* proxy_check_ref() now checks the object, not the proxy.
* Most functions take PyObject* instead of PyWeakReference*.
* Remove redundant calls to PyWeakref_GET_OBJECT().
Objects/weakrefobject.c