Skip to content

Commit cba17e4

Browse files
[3.13] Doc: C API: Delete claim that PyObject_Init is GC-aware (GH-126418) (#126431)
Doc: C API: Delete claim that `PyObject_Init` is GC-aware (GH-126418) (cherry picked from commit 407c036) Co-authored-by: Richard Hansen <[email protected]>
1 parent ce1a1a6 commit cba17e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/c-api/allocation.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@ Allocating Objects on the Heap
1515
.. c:function:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)
1616
1717
Initialize a newly allocated object *op* with its type and initial
18-
reference. Returns the initialized object. If *type* indicates that the
19-
object participates in the cyclic garbage detector, it is added to the
20-
detector's set of observed objects. Other fields of the object are not
21-
affected.
18+
reference. Returns the initialized object. Other fields of the object are
19+
not affected.
2220
2321
2422
.. c:function:: PyVarObject* PyObject_InitVar(PyVarObject *op, PyTypeObject *type, Py_ssize_t size)

0 commit comments

Comments
 (0)