Home
last modified time | relevance | path

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

12

/third_party/python/Doc/c-api/
Dgcsupport.rst17 :c:member:`~PyTypeObject.tp_traverse` handler. If instances of the type are mutable, a
46 a :c:member:`~PyTypeObject.tp_traverse` handler or explicitly use one
52 :c:member:`~PyTypeObject.tp_flags`, :c:member:`~PyTypeObject.tp_traverse`
80 followed by the :c:member:`~PyTypeObject.tp_traverse` handler become valid, usually near the
124 the fields used by the :c:member:`~PyTypeObject.tp_traverse` handler become invalid.
132 The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function parameter of this type:
137 Type of the visitor function passed to the :c:member:`~PyTypeObject.tp_traverse` handler.
139 the third parameter to the :c:member:`~PyTypeObject.tp_traverse` handler as *arg*. The
144 The :c:member:`~PyTypeObject.tp_traverse` handler must have the following type:
156 To simplify writing :c:member:`~PyTypeObject.tp_traverse` handlers, a :c:func:`Py_VISIT` macro is
[all …]
Dtypeobj.rst88 …| :c:member:`~PyTypeObject.tp_traverse` | :c:type:`traverseproc` | …
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`
1103 clear in the subtype and the :attr:`tp_traverse` and
1280 .. c:member:: traverseproc PyTypeObject.tp_traverse
1285 int tp_traverse(PyObject *self, visitproc visit, void *arg);
1290 The :c:member:`~PyTypeObject.tp_traverse` pointer is used by the garbage collector to detect
[all …]
Dtype.rst107 :c:member:`~PyTypeObject.tp_traverse` handle.
/third_party/python/Doc/includes/
Dtypestruct.h40 traverseproc tp_traverse; member
Dcustom4.c170 .tp_traverse = (traverseproc) Custom_traverse,
/third_party/python/Modules/
Dgcmodule.c481 traverse = Py_TYPE(op)->tp_traverse; in subtract_refs()
588 traverseproc traverse = Py_TYPE(op)->tp_traverse; in move_unreachable()
739 traverse = Py_TYPE(FROM_GC(gc))->tp_traverse; in move_legacy_finalizer_reachable()
1672 traverse = Py_TYPE(obj)->tp_traverse; in gc_referrers_for()
1738 traverse = Py_TYPE(obj)->tp_traverse; in gc_get_referents()
2212 traverseproc traverse = Py_TYPE(op)->tp_traverse; in PyObject_GC_Track()
D_asynciomodule.c1541 .tp_traverse = (traverseproc)FutureObj_traverse,
1768 .tp_traverse = (traverseproc)FutureIter_traverse,
1886 .tp_traverse = (traverseproc)TaskStepMethWrapper_traverse,
2498 .tp_traverse = (traverseproc)TaskObj_traverse,
D_collectionsmodule.c2196 return PyDict_Type.tp_traverse(self, visit, arg); in defdict_traverse()
/third_party/python/Objects/
Dpicklebufobject.c214 .tp_traverse = (traverseproc) picklebuf_traverse,
Dtypeslots.inc72 {-1, offsetof(PyTypeObject, tp_traverse)},
Dunionobject.c458 .tp_traverse = union_traverse,
Dstructseq.c495 type->tp_traverse = (traverseproc) structseq_traverse; in _PyStructSequence_InitType()
Dgenericaliasobject.c648 .tp_traverse = ga_traverse,
Dtypeobject.c1219 while ((basetraverse = base->tp_traverse) == subtype_traverse) { in subtype_traverse()
2768 type->tp_traverse = subtype_traverse; in type_new_alloc()
5688 (!type->tp_traverse && !type->tp_clear)) { in inherit_special()
5690 if (type->tp_traverse == NULL) in inherit_special()
5691 type->tp_traverse = base->tp_traverse; in inherit_special()
Ddictobject.c4121 .tp_traverse = (traverseproc)dictiter_traverse,
4164 .tp_traverse = (traverseproc)dictiter_traverse,
4176 .tp_traverse = (traverseproc)dictiter_traverse,
Dodictobject.c1508 return PyDict_Type.tp_traverse((PyObject *)od, visit, arg); in odict_traverse()
Dmemoryobject.c3265 .tp_traverse = (traverseproc)memoryiter_traverse,
/third_party/python/Python/
Dcontext.c716 .tp_traverse = (traverseproc)context_tp_traverse,
1066 .tp_traverse = (traverseproc)contextvar_tp_traverse,
1207 .tp_traverse = (traverseproc)token_tp_traverse,
Dhamt.c2605 .tp_traverse = (traverseproc)hamt_baseiter_tp_traverse, \
2904 .tp_traverse = (traverseproc)hamt_tp_traverse,
2923 .tp_traverse = (traverseproc)hamt_node_array_traverse,
2936 .tp_traverse = (traverseproc)hamt_node_bitmap_traverse,
2949 .tp_traverse = (traverseproc)hamt_node_collision_traverse,
/third_party/python/Doc/library/
Dgc.rst153 :c:member:`~PyTypeObject.tp_traverse` methods (if any), and may not be all objects actually
154 directly reachable. :c:member:`~PyTypeObject.tp_traverse` methods are supported only by objects
/third_party/python/Include/cpython/
Dobject.h230 traverseproc tp_traverse; member
/third_party/python/Misc/NEWS.d/
D3.5.0b3.rst242 _testmultiphase and xxlimited now use tp_traverse and tp_finalize to avoid
D3.9.0b1.rst950 of the provided :c:member:`~PyTypeObject.tp_traverse`). Patch by Pablo
/third_party/python/Doc/whatsnew/
D3.9.rst1143 types that have a custom :c:member:`~PyTypeObject.tp_traverse` function,
1144 ensure that all custom ``tp_traverse`` functions of heap-allocated types
1160 If your traverse function delegates to ``tp_traverse`` of its base class
1163 in ``tp_traverse``.
1165 For example, if your ``tp_traverse`` function includes:
1169 base->tp_traverse(self, visit, arg)
1178 // a heap type's tp_traverse already visited Py_TYPE(self)
/third_party/python/Doc/extending/
Dnewtypes.rst135 First, if your type supports garbage collection (using :c:member:`~PyTypeObject.tp_traverse`

12