Home
last modified time | relevance | path

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

12

/external/python/cpython2/Doc/includes/
Dtypestruct.h8 destructor tp_dealloc; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h8 destructor tp_dealloc; member
Dcustom2.c106 .tp_dealloc = (destructor) Custom_dealloc,
Dcustom3.c156 .tp_dealloc = (destructor) Custom_dealloc,
Dcustom4.c168 .tp_dealloc = (destructor) Custom_dealloc,
/external/python/cpython3/Misc/NEWS.d/
D3.5.5rc1.rst48 Fix potential crash during GC caused by ``tp_dealloc`` which doesn't call
D3.5.0b3.rst243 reference leaks encountered when combining tp_dealloc with PyType_FromSpec
/external/python/cpython3/Python/
Dcontext.c665 .tp_dealloc = (destructor)context_tp_dealloc,
1002 .tp_dealloc = (destructor)contextvar_tp_dealloc,
1136 .tp_dealloc = (destructor)token_tp_dealloc,
Dhamt.c2620 .tp_dealloc = (destructor)hamt_baseiter_tp_dealloc, \
2918 .tp_dealloc = (destructor)hamt_tp_dealloc,
2938 .tp_dealloc = (destructor)hamt_node_array_dealloc,
2951 .tp_dealloc = (destructor)hamt_node_bitmap_dealloc,
2964 .tp_dealloc = (destructor)hamt_node_collision_dealloc,
/external/python/cpython3/Objects/
Dtypeslots.inc53 offsetof(PyHeapTypeObject, ht_type.tp_dealloc),
Dobject.c1969 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _Py_Dealloc()
2162 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_destroy_chain()
2200 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_thread_destroy_chain()
2227 (*Py_TYPE(op)->tp_dealloc)(op); in _Py_Dealloc()
Dtypeobject.c1143 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1176 while ((/*basedealloc =*/ base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1228 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
2774 type->tp_dealloc = subtype_dealloc; in type_new()
2948 if (type->tp_dealloc == NULL) { in PyType_FromSpecWithBases()
2952 type->tp_dealloc = subtype_dealloc; in PyType_FromSpecWithBases()
3846 (child->tp_dealloc == subtype_dealloc || in compatible_with_tp_base()
3847 child->tp_dealloc == parent->tp_dealloc)); in compatible_with_tp_base()
5049 COPYSLOT(tp_dealloc); in inherit_slots()
/external/python/cpython3/Doc/extending/
Dnewtypes.rst62 destructor tp_dealloc;
123 cleared or finalized by the time :c:member:`~PyTypeObject.tp_dealloc` is called. Second, in
124 :c:member:`~PyTypeObject.tp_dealloc`, your object is in an unstable state: its reference
126 example above) might end up calling :c:member:`~PyTypeObject.tp_dealloc` again, causing a
130 finalization code in :c:member:`~PyTypeObject.tp_dealloc`, and instead use the new
581 The only further addition is that ``tp_dealloc`` needs to clear any weak
Dnewtypes_tutorial.rst266 which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::
268 .tp_dealloc = (destructor) Custom_dealloc,
280 ``Custom_dealloc`` to take a ``CustomObject *`` argument, but the ``tp_dealloc``
425 * when decrementing a reference count in a :c:member:`~PyTypeObject.tp_dealloc`
643 the ``tp_dealloc`` implementation, where there is the possibility that the
842 :c:member:`~PyTypeObject.tp_new` and :c:member:`~PyTypeObject.tp_dealloc`
885 .. [#] We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler
/external/python/cpython3/Doc/c-api/
Dallocation.rst55 :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of
Dgcsupport.rst92 (:c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the object before any of
/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
790 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
/external/python/cpython3/Modules/
D_asynciomodule.c1440 .tp_dealloc = FutureObj_dealloc,
1637 .tp_dealloc = (destructor)FutureIter_dealloc,
1754 .tp_dealloc = (destructor)TaskStepMethWrapper_dealloc,
1828 .tp_dealloc = (destructor)TaskWakeupMethWrapper_dealloc,
2414 .tp_dealloc = TaskObj_dealloc,
3165 .tp_dealloc = (destructor)PyRunningLoopHolder_tp_dealloc,
/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
/external/python/cpython2/Objects/
Dobject.c2265 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _Py_Dealloc()
2473 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_destroy_chain()
2498 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_thread_destroy_chain()
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c48 PyDict_Type.tp_dealloc((PyObject *)self); in PyCStgDict_dealloc()
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c48 PyDict_Type.tp_dealloc((PyObject *)self); in PyCStgDict_dealloc()

12