]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount() (GH-151260) (#151327)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jun 2026 11:20:21 +0000 (13:20 +0200)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2026 11:20:21 +0000 (11:20 +0000)
commit9f5c4c78229468cc9325aa7ad2da210d591e38e2
treeb3d7bd5f6b40eb656d6e0bb211cb86bbffc960f3
parent435af7f42b6eb4323b8cfc6b9e58c8205a633d64
[3.14] gh-123619: Fix PyUnstable_Object_EnableDeferredRefcount() (GH-151260) (#151327)

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