SIGN IN SIGN UP

gh-118789: Restore hidden `_PyWeakref_ClearRef` (#118797)

_PyWeakref_ClearRef was previously exposed in the public C-API, although
it begins with an underscore and is not documented. It's used by a few
C-API extensions. There is currently no alternative public API that can
replace its use.

_PyWeakref_ClearWeakRefsExceptCallbacks is the only thread-safe way to
use _PyWeakref_ClearRef in the free-threaded build. This exposes the C
symbol, but does not make the API public.
S
Sam Gross committed
db5af7da092409030c9fbe0a3a986bd0ee441b8b
Parent: a895756
Committed by GitHub <noreply@github.com> on 5/10/2024, 1:54:18 PM