]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105927: Remove _PyWeakref_GetWeakrefCount() (#106007)
authorVictor Stinner <vstinner@python.org>
Fri, 23 Jun 2023 03:00:56 +0000 (05:00 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2023 03:00:56 +0000 (03:00 +0000)
commit6a80664ef1200008d5beb1584e03d779ef30cc58
treee5ad14c21ed2aa9b040de42ca7fac6b6caa62b46
parent7b3ed5b29fd33ecfdaedc3bb0b8f6c05ded68361
gh-105927: Remove _PyWeakref_GetWeakrefCount() (#106007)

Remove _PyWeakref_GetWeakrefCount() and _PyWeakref_ClearRef() from
the public C API: move them to the internal C API.

Refactor also _weakref_getweakrefs() code to make it more readable.
Include/cpython/weakrefobject.h
Include/internal/pycore_weakref.h
Modules/_weakref.c
Modules/gcmodule.c