diff options
author | Richard Hansen <rhansen@rhansen.org> | 2024-11-05 09:48:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 09:48:46 (GMT) |
commit | 407c0366d9ccd2a36c6cc8bf92324856b16fd604 (patch) | |
tree | b4dcc8db5480deacd7492a2ba70efe3bab1d68d4 /Doc/c-api | |
parent | 3d4fda2165e7c97116e69d6efef187873b57d01f (diff) | |
download | cpython-407c0366d9ccd2a36c6cc8bf92324856b16fd604.zip cpython-407c0366d9ccd2a36c6cc8bf92324856b16fd604.tar.gz cpython-407c0366d9ccd2a36c6cc8bf92324856b16fd604.tar.bz2 |
Doc: C API: Delete claim that `PyObject_Init` is GC-aware (#126418)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/allocation.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/c-api/allocation.rst b/Doc/c-api/allocation.rst index 0d53b18..b7e0f22 100644 --- a/Doc/c-api/allocation.rst +++ b/Doc/c-api/allocation.rst @@ -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) |