Home
last modified time | relevance | path

Searched refs:tp_dealloc (Results 1 – 25 of 25) sorted by relevance

/external/python/cpython2/Doc/includes/
Dtypestruct.h8 destructor tp_dealloc; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h8 destructor tp_dealloc; member
/external/python/cpython3/Modules/
D_asynciomodule.c899 .tp_dealloc = FutureObj_dealloc,
1104 .tp_dealloc = (destructor)FutureIter_dealloc,
1202 .tp_dealloc = (destructor)TaskSendMethWrapper_dealloc,
1272 .tp_dealloc = (destructor)TaskWakeupMethWrapper_dealloc,
1790 .tp_dealloc = TaskObj_dealloc,
D_collectionsmodule.c2090 PyDict_Type.tp_dealloc((PyObject *)dd); in defdict_dealloc()
/external/python/cpython3/Objects/
Dobject.c1784 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _Py_Dealloc()
1985 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_destroy_chain()
2010 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_thread_destroy_chain()
2037 (*Py_TYPE(op)->tp_dealloc)(op); in _Py_Dealloc()
Dtypeslots.inc53 offsetof(PyHeapTypeObject, ht_type.tp_dealloc),
Dtypeobject.c1109 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1142 while ((/*basedealloc =*/ base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1194 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
2672 type->tp_dealloc = subtype_dealloc; in type_new()
2841 if (type->tp_dealloc == NULL) { in PyType_FromSpecWithBases()
2845 type->tp_dealloc = subtype_dealloc; in PyType_FromSpecWithBases()
3635 (child->tp_dealloc == subtype_dealloc || in compatible_with_tp_base()
3636 child->tp_dealloc == parent->tp_dealloc)); in compatible_with_tp_base()
4823 COPYSLOT(tp_dealloc); in inherit_slots()
Dodictobject.c1464 PyDict_Type.tp_dealloc((PyObject *)self); in odict_dealloc()
/external/python/cpython2/Include/
Dobject.h331 destructor tp_dealloc; member
764 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
/external/python/cpython3/Include/
Dobject.h353 destructor tp_dealloc; member
779 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
/external/python/cpython3/Doc/c-api/
Dallocation.rst55 :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of
Dgcsupport.rst89 (:c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the object before any of
Dtypeobj.rst167 .. c:member:: destructor PyTypeObject.tp_dealloc
573 :c:member:`~PyTypeObject.tp_dealloc` function to invoke :c:member:`~PyTypeObject.tp_clear`.
1068 Also, note that, in a garbage collected Python, tp_dealloc may be called from
1072 the thread on which tp_dealloc is called will own the Global Interpreter Lock
1075 objects on the thread which called tp_dealloc will not violate any assumptions
/external/python/cpython3/Doc/extending/
Dnewtypes.rst83 0, /* tp_dealloc */
280 which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::
282 (destructor)Noddy_dealloc, /*tp_dealloc*/
420 * when decrementing a reference count in a :c:member:`~PyTypeObject.tp_dealloc` handler when
937 destructor tp_dealloc;
998 cleared or finalized by the time :c:member:`~PyTypeObject.tp_dealloc` is called. Second, in
999 :c:member:`~PyTypeObject.tp_dealloc`, your object is in an unstable state: its reference
1001 example above) might end up calling :c:member:`~PyTypeObject.tp_dealloc` again, causing a
1005 finalization code in :c:member:`~PyTypeObject.tp_dealloc`, and instead use the new
1510 .. [#] We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler in this example, becau…
/external/python/cpython2/Mac/Modules/cf/
D_CFmodule.c526 CFTypeRef_Type.tp_dealloc((PyObject *)self); in CFArrayRefObj_dealloc()
737 CFArrayRef_Type.tp_dealloc((PyObject *)self); in CFMutableArrayRefObj_dealloc()
977 CFTypeRef_Type.tp_dealloc((PyObject *)self); in CFDictionaryRefObj_dealloc()
1170 CFDictionaryRef_Type.tp_dealloc((PyObject *)self); in CFMutableDictionaryRefObj_dealloc()
1353 CFTypeRef_Type.tp_dealloc((PyObject *)self); in CFDataRefObj_dealloc()
1578 CFDataRef_Type.tp_dealloc((PyObject *)self); in CFMutableDataRefObj_dealloc()
1859 CFTypeRef_Type.tp_dealloc((PyObject *)self); in CFStringRefObj_dealloc()
2586 CFStringRef_Type.tp_dealloc((PyObject *)self); in CFMutableStringRefObj_dealloc()
2974 CFTypeRef_Type.tp_dealloc((PyObject *)self); in CFURLRefObj_dealloc()
/external/python/cpython2/Doc/c-api/
Dallocation.rst70 :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of
Dgcsupport.rst100 (:c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the object before any of
Dtypeobj.rst174 .. c:member:: destructor PyTypeObject.tp_dealloc
668 :c:member:`~PyTypeObject.tp_dealloc` function to invoke :c:member:`~PyTypeObject.tp_clear`.
1141 Also, note that, in a garbage collected Python, tp_dealloc may be called from
1145 the thread on which tp_dealloc is called will own the Global Interpreter Lock
1148 objects on the thread which called tp_dealloc will not violate any assumptions
/external/python/cpython2/Objects/
Dobject.c2260 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _Py_Dealloc()
2468 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_destroy_chain()
2493 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_thread_destroy_chain()
Dtypeobject.c949 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
987 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1022 while (base->tp_dealloc == subtype_dealloc) { in subtype_dealloc()
2494 type->tp_dealloc = subtype_dealloc; in type_new()
3136 if (newto->tp_dealloc != oldto->tp_dealloc || in compatible_for_assignment()
3978 COPYSLOT(tp_dealloc);
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c48 PyDict_Type.tp_dealloc((PyObject *)self); in PyCStgDict_dealloc()
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c48 PyDict_Type.tp_dealloc((PyObject *)self); in PyCStgDict_dealloc()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst87 0, /*tp_dealloc*/
290 which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::
292 (destructor)Noddy_dealloc, /*tp_dealloc*/
431 * when decrementing a reference count in a :c:member:`~PyTypeObject.tp_dealloc` handler when
964 destructor tp_dealloc;
1573 .. [#] We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler in this example, becau…
/external/python/cpython2/Modules/
D_collectionsmodule.c1560 PyDict_Type.tp_dealloc((PyObject *)dd); in defdict_dealloc()
/external/python/cpython3/Misc/
DNEWS5808 tp_finalize to avoid reference leaks encountered when combining tp_dealloc