]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: C API: Delete claim that `PyObject_Init` is GC-aware (#126418)
authorRichard Hansen <rhansen@rhansen.org>
Tue, 5 Nov 2024 09:48:46 +0000 (04:48 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Nov 2024 09:48:46 +0000 (15:18 +0530)
Doc/c-api/allocation.rst

index 0d53b18ea87d5e27d8ba44258635b30e36a9f2ce..b7e0f22b52c57e9b425c47ce63b456874a895696 100644 (file)
@@ -15,10 +15,8 @@ Allocating Objects on the Heap
 .. c:function:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)
 
    Initialize a newly allocated object *op* with its type and initial
-   reference.  Returns the initialized object.  If *type* indicates that the
-   object participates in the cyclic garbage detector, it is added to the
-   detector's set of observed objects. Other fields of the object are not
-   affected.
+   reference.  Returns the initialized object.  Other fields of the object are
+   not affected.
 
 
 .. c:function:: PyVarObject* PyObject_InitVar(PyVarObject *op, PyTypeObject *type, Py_ssize_t size)