mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-118789: Restore hidden `_PyWeakref_ClearRef` (GH-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.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| 2024-05-08-20-13-00.gh-issue-118789.m88uUa.rst | ||
| 2024-05-08-23-14-06.gh-issue-116984.5sgcDo.rst | ||
| README.rst | ||
Put news entry `blurb`_ files for the *C API* section in this directory. .. _blurb: https://pypi.org/project/blurb/