Home
last modified time | relevance | path

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

12

/third_party/python/Modules/
Dgc_weakref.txt12 runs tp_clear on all unreachable objects, if an unreachable object is
13 resurrected then tp_clear will eventually be called on it (or may already
15 historically common bug), tp_clear empties an instance's __dict__, and
16 "impossible" AttributeErrors result. At worst, tp_clear leaves behind an
44 will call before it's done --tp_clear()). It's not even necessarily that a
92 that have already suffered a tp_clear() call. There's no guarantee that an
93 object is in a sane state after tp_clear(). Bad things (including
128 defined-- or even predictable --order in which tp_clear() gets called on
148 So, to prevent any Python code from running while gc is invoking tp_clear()
158 tp_clear() on weakrefs with callbacks first. Instead the weakref module
[all …]
D_csv.c356 tp->tp_clear((PyObject *)self); in Dialect_dealloc()
940 tp->tp_clear((PyObject *)self); in Reader_dealloc()
1399 tp->tp_clear((PyObject *)self); in Writer_dealloc()
D_asynciomodule.c1542 .tp_clear = (inquiry)FutureObj_clear,
1887 .tp_clear = (inquiry)TaskStepMethWrapper_clear,
2499 .tp_clear = (inquiry)TaskObj_clear,
Dgcmodule.c1015 if ((clear = Py_TYPE(op)->tp_clear) != NULL) { in delete_garbage()
D_collectionsmodule.c2203 return PyDict_Type.tp_clear((PyObject *)dd); in defdict_tp_clear()
D_testcapimodule.c3792 tp->tp_clear = NULL; in without_gc()
/third_party/python/Doc/includes/
Dtypestruct.h43 inquiry tp_clear; member
Dcustom4.c171 .tp_clear = (inquiry) Custom_clear,
/third_party/python/Modules/_sqlite/
Dcache.c69 tp->tp_clear((PyObject *)self); in pysqlite_node_dealloc()
152 tp->tp_clear((PyObject *)self); in pysqlite_cache_dealloc()
Drow.c56 tp->tp_clear(self); in pysqlite_row_dealloc()
Dstatement.c406 tp->tp_clear((PyObject *)self); in stmt_dealloc()
Dcursor.c124 tp->tp_clear((PyObject *)self); in cursor_dealloc()
Dconnection.c271 tp->tp_clear((PyObject *)self); in connection_dealloc()
/third_party/python/Doc/c-api/
Dgcsupport.rst18 :c:member:`~PyTypeObject.tp_clear` implementation must also be provided.
53 and :c:member:`~PyTypeObject.tp_clear` fields if the type inherits from a
176 The :c:member:`~PyTypeObject.tp_clear` handler must be of the :c:type:`inquiry` type, or ``NULL``
Dtypeobj.rst90 …| :c:member:`~PyTypeObject.tp_clear` | :c:type:`inquiry` | …
1022 …the :c:member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject.tp_clear` fields, i.e. if t…
1024 …:c:member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject.tp_clear` fields in the subtype…
1093 …GC-related fields :c:member:`~PyTypeObject.tp_traverse` and :c:member:`~PyTypeObject.tp_clear` are…
1098 Group: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`
1101 together with the :attr:`tp_traverse` and :attr:`tp_clear`
1104 :attr:`tp_clear` fields in the subtype exist and have ``NULL``
1345 Group: :const:`Py_TPFLAGS_HAVE_GC`, :attr:`tp_traverse`, :attr:`tp_clear`
1347 This field is inherited by subtypes together with :c:member:`~PyTypeObject.tp_clear` and the
1349 :c:member:`~PyTypeObject.tp_clear` are all inherited from the base type if they are all zero in
[all …]
Dmodule.rst224 Like :c:member:`PyTypeObject.tp_clear`, this function is not *always*
/third_party/python/Objects/
Dpicklebufobject.c215 .tp_clear = (inquiry) picklebuf_clear,
Dtypeslots.inc52 {-1, offsetof(PyTypeObject, tp_clear)},
Dtypeobject.c1281 while ((baseclear = base->tp_clear) == subtype_clear) { in subtype_clear()
2769 type->tp_clear = subtype_clear; in type_new_alloc()
5688 (!type->tp_traverse && !type->tp_clear)) { in inherit_special()
5692 if (type->tp_clear == NULL) in inherit_special()
5693 type->tp_clear = base->tp_clear; in inherit_special()
/third_party/python/Python/
Dcontext.c717 .tp_clear = (inquiry)context_tp_clear,
1067 .tp_clear = (inquiry)contextvar_tp_clear,
1208 .tp_clear = (inquiry)token_tp_clear,
Dhamt.c2606 .tp_clear = (inquiry)hamt_baseiter_tp_clear, \
2905 .tp_clear = (inquiry)hamt_tp_clear,
/third_party/python/Include/cpython/
Dobject.h233 inquiry tp_clear; member
/third_party/python/Doc/extending/
Dnewtypes.rst136 and/or :c:member:`~PyTypeObject.tp_clear`), some of the object's members can have been
/third_party/protobuf/python/google/protobuf/pyext/
Dmessage.cc356 return PyType_Type.tp_clear(pself); in GcClear()
/third_party/python/Modules/_ctypes/
D_ctypes.c878 return PyType_Type.tp_clear((PyObject *)self); in CDataType_clear()

12