mirror of https://github.com/python/cpython.git
7b811d0562
The `PyWeakref_IsDead()` function tests if a weak reference is dead without any side effects. Although you can also detect if a weak reference is dead using `PyWeakref_GetRef()`, that function returns a strong reference that must be `Py_DECREF()`'d, which can introduce side effects if the last reference is concurrently dropped (at least in the free threading build). |
||
---|---|---|
.. | ||
2024-12-16-21-59-06.gh-issue-128008.fa9Jt0.rst | ||
README.rst |
README.rst
Put news entry `blurb`_ files for the *C API* section in this directory. .. _blurb: https://pypi.org/project/blurb/