We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0cf865 commit 7b41f63Copy full SHA for 7b41f63
Doc/c-api/object.rst
@@ -575,3 +575,18 @@ Object Protocol
575
has the :c:macro:`Py_TPFLAGS_MANAGED_DICT` flag set.
576
577
.. versionadded:: 3.13
578
+
579
+.. c:function:: int PyUnstable_Object_SetDeferredRefcount(PyObject *obj)
580
581
+ Enable `deferred reference counting https://peps.python.org/pep-0703/#deferred-reference-counting`_ on *obj*.
582
583
+ *obj* must be an object tracked by the garbage collector (see :func:`gc.is_tracked`), must have been
584
+ created by the calling thread, and must not be in use by any existing threads.
585
586
+ If any of the above conditions are not met, this function returns a negative value
587
+ and sets an exception.
588
589
+ This function is a no-op on builds with the :term:`GIL` enabled.
590
591
+ .. versionadded:: 3.14
592
0 commit comments