Lines Matching refs:type
9 PyTypeObject* type = Py_TYPE(obj);
10 /* try to find the first parent type that has a different tp_dealloc() function */
11 while (type && type->tp_dealloc != current_tp_dealloc)
12 type = type->tp_base;
13 while (type && type->tp_dealloc == current_tp_dealloc)
14 type = type->tp_base;
15 if (type)
16 type->tp_dealloc(obj);
26 PyTypeObject* type = Py_TYPE(obj);
27 /* try to find the first parent type that has a different tp_traverse() function */
28 while (type && type->tp_traverse != current_tp_traverse)
29 type = type->tp_base;
30 while (type && type->tp_traverse == current_tp_traverse)
31 type = type->tp_base;
32 if (type && type->tp_traverse)
33 return type->tp_traverse(obj, v, a);
45 PyTypeObject* type = Py_TYPE(obj);
46 /* try to find the first parent type that has a different tp_clear() function */
47 while (type && type->tp_clear != current_tp_clear)
48 type = type->tp_base;
49 while (type && type->tp_clear == current_tp_clear)
50 type = type->tp_base;
51 if (type && type->tp_clear)
52 type->tp_clear(obj);