diff options
author | Sam Gross <colesbury@gmail.com> | 2025-01-28 14:32:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-28 19:32:27 +0000 |
commit | d23f5701ad2a64c7877bb37258420c417357423e (patch) | |
tree | 8ea63a6f20b08d01c4fb6f1423abeb78e28e37df /Lib/test/lock_tests.py | |
parent | 7dd0a7e52ee832559b89d5ccba732c8e91260df8 (diff) | |
download | cpython-d23f5701ad2a64c7877bb37258420c417357423e.tar.gz cpython-d23f5701ad2a64c7877bb37258420c417357423e.zip |
gh-128844: Make `_Py_TryIncref` public as an unstable API. (#128926)
This exposes `_Py_TryIncref` as `PyUnstable_TryIncref()` and the helper
function `_PyObject_SetMaybeWeakref` as `PyUnstable_EnableTryIncRef`.
These are helpers for dealing with unowned references in a safe way,
particularly in the free threading build.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Lib/test/lock_tests.py')
0 files changed, 0 insertions, 0 deletions