Searched refs:tp_clear (Results 1 – 25 of 26) sorted by relevance
12
/third_party/python/Modules/ |
D | gc_weakref.txt | 12 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.c | 356 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.c | 1542 .tp_clear = (inquiry)FutureObj_clear, 1887 .tp_clear = (inquiry)TaskStepMethWrapper_clear, 2499 .tp_clear = (inquiry)TaskObj_clear,
|
D | gcmodule.c | 1015 if ((clear = Py_TYPE(op)->tp_clear) != NULL) { in delete_garbage()
|
D | _collectionsmodule.c | 2203 return PyDict_Type.tp_clear((PyObject *)dd); in defdict_tp_clear()
|
D | _testcapimodule.c | 3792 tp->tp_clear = NULL; in without_gc()
|
/third_party/python/Doc/includes/ |
D | typestruct.h | 43 inquiry tp_clear; member
|
D | custom4.c | 171 .tp_clear = (inquiry) Custom_clear,
|
/third_party/python/Modules/_sqlite/ |
D | cache.c | 69 tp->tp_clear((PyObject *)self); in pysqlite_node_dealloc() 152 tp->tp_clear((PyObject *)self); in pysqlite_cache_dealloc()
|
D | row.c | 56 tp->tp_clear(self); in pysqlite_row_dealloc()
|
D | statement.c | 406 tp->tp_clear((PyObject *)self); in stmt_dealloc()
|
D | cursor.c | 124 tp->tp_clear((PyObject *)self); in cursor_dealloc()
|
D | connection.c | 271 tp->tp_clear((PyObject *)self); in connection_dealloc()
|
/third_party/python/Doc/c-api/ |
D | gcsupport.rst | 18 :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``
|
D | typeobj.rst | 90 …| :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 …]
|
D | module.rst | 224 Like :c:member:`PyTypeObject.tp_clear`, this function is not *always*
|
/third_party/python/Objects/ |
D | picklebufobject.c | 215 .tp_clear = (inquiry) picklebuf_clear,
|
D | typeslots.inc | 52 {-1, offsetof(PyTypeObject, tp_clear)},
|
D | typeobject.c | 1281 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/ |
D | context.c | 717 .tp_clear = (inquiry)context_tp_clear, 1067 .tp_clear = (inquiry)contextvar_tp_clear, 1208 .tp_clear = (inquiry)token_tp_clear,
|
D | hamt.c | 2606 .tp_clear = (inquiry)hamt_baseiter_tp_clear, \ 2905 .tp_clear = (inquiry)hamt_tp_clear,
|
/third_party/python/Include/cpython/ |
D | object.h | 233 inquiry tp_clear; member
|
/third_party/python/Doc/extending/ |
D | newtypes.rst | 136 and/or :c:member:`~PyTypeObject.tp_clear`), some of the object's members can have been
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | message.cc | 356 return PyType_Type.tp_clear(pself); in GcClear()
|
/third_party/python/Modules/_ctypes/ |
D | _ctypes.c | 878 return PyType_Type.tp_clear((PyObject *)self); in CDataType_clear()
|
12