Update PyObject_Del() documentation (#122597)

Replace PyMem_Del() with PyMem_Free().
This commit is contained in:
Victor Stinner 2024-08-02 12:13:33 +02:00 committed by GitHub
parent 03b88522f5
commit addbb73927
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 18 deletions

View file

@ -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