]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount() (GH-151260) (#151326)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jun 2026 11:21:26 +0000 (13:21 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2026 11:21:26 +0000 (11:21 +0000)
commitdc5ebe3da4defe5d3cda0ca0c781ea20942e8d0f
tree48e769dbeb2e47137fc41914d90991f96eb0ee42
parent491768da4c7ffcc38809724d4d9c4a67e7131b9d
[3.15] gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount() (GH-151260) (#151326)

gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount() (GH-151260)

Return 0 if the object is not tracked by the GC.
(cherry picked from commit 72e7eddce6c7137cef06b6eba15641597919e3d4)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_capi/test_object.py
Misc/NEWS.d/next/C_API/2026-06-10-16-43-37.gh-issue-123619.dV82r6.rst [new file with mode: 0644]
Objects/object.c