/third_party/python/Doc/c-api/ |
D | gcsupport.rst | 17 :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 …]
|
D | typeobj.rst | 88 …| :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 …]
|
D | type.rst | 107 :c:member:`~PyTypeObject.tp_traverse` handle.
|
/third_party/python/Doc/includes/ |
D | typestruct.h | 40 traverseproc tp_traverse; member
|
D | custom4.c | 170 .tp_traverse = (traverseproc) Custom_traverse,
|
/third_party/python/Modules/ |
D | gcmodule.c | 481 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.c | 1541 .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.c | 2196 return PyDict_Type.tp_traverse(self, visit, arg); in defdict_traverse()
|
/third_party/python/Objects/ |
D | picklebufobject.c | 214 .tp_traverse = (traverseproc) picklebuf_traverse,
|
D | typeslots.inc | 72 {-1, offsetof(PyTypeObject, tp_traverse)},
|
D | unionobject.c | 458 .tp_traverse = union_traverse,
|
D | structseq.c | 495 type->tp_traverse = (traverseproc) structseq_traverse; in _PyStructSequence_InitType()
|
D | genericaliasobject.c | 648 .tp_traverse = ga_traverse,
|
D | typeobject.c | 1219 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()
|
D | dictobject.c | 4121 .tp_traverse = (traverseproc)dictiter_traverse, 4164 .tp_traverse = (traverseproc)dictiter_traverse, 4176 .tp_traverse = (traverseproc)dictiter_traverse,
|
D | odictobject.c | 1508 return PyDict_Type.tp_traverse((PyObject *)od, visit, arg); in odict_traverse()
|
D | memoryobject.c | 3265 .tp_traverse = (traverseproc)memoryiter_traverse,
|
/third_party/python/Python/ |
D | context.c | 716 .tp_traverse = (traverseproc)context_tp_traverse, 1066 .tp_traverse = (traverseproc)contextvar_tp_traverse, 1207 .tp_traverse = (traverseproc)token_tp_traverse,
|
D | hamt.c | 2605 .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/ |
D | gc.rst | 153 :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/ |
D | object.h | 230 traverseproc tp_traverse; member
|
/third_party/python/Misc/NEWS.d/ |
D | 3.5.0b3.rst | 242 _testmultiphase and xxlimited now use tp_traverse and tp_finalize to avoid
|
D | 3.9.0b1.rst | 950 of the provided :c:member:`~PyTypeObject.tp_traverse`). Patch by Pablo
|
/third_party/python/Doc/whatsnew/ |
D | 3.9.rst | 1143 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/ |
D | newtypes.rst | 135 First, if your type supports garbage collection (using :c:member:`~PyTypeObject.tp_traverse`
|