aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/lock_tests.py
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2025-01-28 14:32:27 -0500
committerGitHub <noreply@github.com>2025-01-28 19:32:27 +0000
commitd23f5701ad2a64c7877bb37258420c417357423e (patch)
tree8ea63a6f20b08d01c4fb6f1423abeb78e28e37df /Lib/test/lock_tests.py
parent7dd0a7e52ee832559b89d5ccba732c8e91260df8 (diff)
downloadcpython-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