mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Update PyObject_Del() documentation (#122597)
Replace PyMem_Del() with PyMem_Free().
This commit is contained in:
parent
03b88522f5
commit
addbb73927
4 changed files with 13 additions and 18 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue