Skip to content

Commit

Permalink
[3.12] Doc: C API: Delete claim that PyObject_Init is GC-aware (pyt…
Browse files Browse the repository at this point in the history
…honGH-126418) (python#126432)

Doc: C API: Delete claim that `PyObject_Init` is GC-aware (pythonGH-126418)
(cherry picked from commit 407c036)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
  • Loading branch information
miss-islington and rhansen authored Nov 5, 2024
1 parent 844d908 commit aa5498d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Doc/c-api/allocation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa5498d

Please sign in to comment.