Home
last modified time | relevance | path

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

12

/third_party/python/Doc/includes/
Dtypestruct.h8 destructor tp_dealloc; member
Dcustom2.c107 .tp_dealloc = (destructor) Custom_dealloc,
Dcustom3.c157 .tp_dealloc = (destructor) Custom_dealloc,
Dcustom4.c169 .tp_dealloc = (destructor) Custom_dealloc,
/third_party/python/Misc/NEWS.d/
D3.5.5rc1.rst47 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
/third_party/python/Objects/
Dpicklebufobject.c213 .tp_dealloc = (destructor) picklebuf_dealloc,
Dtypeslots.inc53 {-1, offsetof(PyTypeObject, tp_dealloc)},
Dobject.c2135 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_destroy_chain()
2173 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _PyTrash_thread_destroy_chain()
2221 return Py_TYPE(op)->tp_dealloc == dealloc; in _PyTrash_cond()
2284 destructor dealloc = Py_TYPE(op)->tp_dealloc; in _Py_Dealloc()
Dunionobject.c454 .tp_dealloc = unionobject_dealloc,
Dstructseq.c488 type->tp_dealloc = (destructor)structseq_dealloc; in _PyStructSequence_InitType()
Dgenericaliasobject.c640 .tp_dealloc = ga_dealloc,
Dtypeobject.c1333 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1371 while ((/*basedealloc =*/ base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
1423 while ((basedealloc = base->tp_dealloc) == subtype_dealloc) { in subtype_dealloc()
2763 type->tp_dealloc = subtype_dealloc; in type_new_alloc()
3548 if (type->tp_dealloc == NULL) { in PyType_FromModuleAndSpec()
3552 type->tp_dealloc = subtype_dealloc; in PyType_FromModuleAndSpec()
4619 (child->tp_dealloc == subtype_dealloc || in compatible_with_tp_base()
4620 child->tp_dealloc == parent->tp_dealloc)); in compatible_with_tp_base()
5864 COPYSLOT(tp_dealloc); in inherit_slots()
/third_party/python/Doc/c-api/
Dallocation.rst55 :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of
Dtypeobj.rst50 …| :c:member:`~PyTypeObject.tp_dealloc` | :c:type:`destructor` | …
648 .. c:member:: destructor PyTypeObject.tp_dealloc
654 void tp_dealloc(PyObject *self);
1398 collector is not involved and :c:member:`~PyTypeObject.tp_dealloc` is
1405 :c:member:`~PyTypeObject.tp_dealloc` function to invoke :c:member:`~PyTypeObject.tp_clear`.
2026 Also, note that, in a garbage collected Python, :c:member:`~PyTypeObject.tp_dealloc` may be called …
2030 the thread on which tp_dealloc is called will own the Global Interpreter Lock
2033 objects on the thread which called tp_dealloc will not violate any assumptions
2600 .tp_dealloc = (destructor)myobj_dealloc,
2612 (destructor)myobj_dealloc, /* tp_dealloc */
[all …]
Dgcsupport.rst123 (:c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the object before any of
Dtype.rst242 * ``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`
/third_party/python/Doc/extending/
Dnewtypes.rst64 destructor tp_dealloc;
137 cleared or finalized by the time :c:member:`~PyTypeObject.tp_dealloc` is called. Second, in
138 :c:member:`~PyTypeObject.tp_dealloc`, your object is in an unstable state: its reference
140 example above) might end up calling :c:member:`~PyTypeObject.tp_dealloc` again, causing a
144 finalization code in :c:member:`~PyTypeObject.tp_dealloc`, and instead use the new
600 The only further addition is that ``tp_dealloc`` needs to clear any weak
Dnewtypes_tutorial.rst273 which is assigned to the :c:member:`~PyTypeObject.tp_dealloc` member::
275 .tp_dealloc = (destructor) Custom_dealloc,
287 ``Custom_dealloc`` to take a ``CustomObject *`` argument, but the ``tp_dealloc``
432 * when decrementing a reference count in a :c:member:`~PyTypeObject.tp_dealloc`
650 the ``tp_dealloc`` implementation, where there is the possibility that the
849 :c:member:`~PyTypeObject.tp_new` and :c:member:`~PyTypeObject.tp_dealloc`
897 .. [#] We relied on this in the :c:member:`~PyTypeObject.tp_dealloc` handler
/third_party/python/Python/
Dcontext.c712 .tp_dealloc = (destructor)context_tp_dealloc,
1063 .tp_dealloc = (destructor)contextvar_tp_dealloc,
1204 .tp_dealloc = (destructor)token_tp_dealloc,
Dhamt.c2602 .tp_dealloc = (destructor)hamt_baseiter_tp_dealloc, \
2900 .tp_dealloc = (destructor)hamt_tp_dealloc,
2920 .tp_dealloc = (destructor)hamt_node_array_dealloc,
2933 .tp_dealloc = (destructor)hamt_node_bitmap_dealloc,
2946 .tp_dealloc = (destructor)hamt_node_collision_dealloc,
/third_party/python/Modules/
D_asynciomodule.c1536 .tp_dealloc = FutureObj_dealloc,
1764 .tp_dealloc = (destructor)FutureIter_dealloc,
1882 .tp_dealloc = (destructor)TaskStepMethWrapper_dealloc,
2493 .tp_dealloc = TaskObj_dealloc,
3256 .tp_dealloc = (destructor)PyRunningLoopHolder_tp_dealloc,
/third_party/python/Include/cpython/
Dobject.h198 destructor tp_dealloc; member
/third_party/alsa-lib/modules/mixer/simple/
Dpython.c709 tp_dealloc: (destructor)pymelem_dealloc,
890 tp_dealloc: (destructor)pymixer_dealloc,
/third_party/python/Modules/_ctypes/
Dstgdict.c48 PyDict_Type.tp_dealloc((PyObject *)self); in PyCStgDict_dealloc()

12