summaryrefslogtreecommitdiffstats
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2025-01-28 19:32:27 (GMT)
committerGitHub <noreply@github.com>2025-01-28 19:32:27 (GMT)
commitd23f5701ad2a64c7877bb37258420c417357423e (patch)
tree8ea63a6f20b08d01c4fb6f1423abeb78e28e37df /Python/pylifecycle.c
parent7dd0a7e52ee832559b89d5ccba732c8e91260df8 (diff)
downloadcpython-d23f5701ad2a64c7877bb37258420c417357423e.zip
cpython-d23f5701ad2a64c7877bb37258420c417357423e.tar.gz
cpython-d23f5701ad2a64c7877bb37258420c417357423e.tar.bz2
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 'Python/pylifecycle.c')
0 files changed, 0 insertions, 0 deletions