diff options
author | Victor Stinner <vstinner@python.org> | 2024-08-02 10:13:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 10:13:33 (GMT) |
commit | addbb73927f55855dfcc62fd47b0018de8a814ed (patch) | |
tree | 0209ce6e318babdad71c56d11efcc468c02ca147 /Doc/c-api/allocation.rst | |
parent | 03b88522f5e847773845b0fac90fd06d04937a65 (diff) | |
download | cpython-addbb73927f55855dfcc62fd47b0018de8a814ed.zip cpython-addbb73927f55855dfcc62fd47b0018de8a814ed.tar.gz cpython-addbb73927f55855dfcc62fd47b0018de8a814ed.tar.bz2 |
Update PyObject_Del() documentation (#122597)
Replace PyMem_Del() with PyMem_Free().
Diffstat (limited to 'Doc/c-api/allocation.rst')
-rw-r--r-- | Doc/c-api/allocation.rst | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Doc/c-api/allocation.rst b/Doc/c-api/allocation.rst index b3609c2..0d53b18 100644 --- a/Doc/c-api/allocation.rst +++ b/Doc/c-api/allocation.rst @@ -54,12 +54,7 @@ Allocating Objects on the Heap .. c:function:: void PyObject_Del(void *op) - Releases memory allocated to an object using :c:macro:`PyObject_New` or - :c:macro:`PyObject_NewVar`. This is normally called from the - :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of - the object should not be accessed after this call as the memory is no - longer a valid Python object. - + Same as :c:func:`PyObject_Free`. .. c:var:: PyObject _Py_NoneStruct |