/external/python/cpython3/Include/ |
D | setobject.h | 91 #define PyFrozenSet_CheckExact(ob) (Py_TYPE(ob) == &PyFrozenSet_Type) 93 (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type) 95 (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type || \ 96 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \ 97 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type)) 99 (Py_TYPE(ob) == &PySet_Type || \ 100 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type)) 102 (Py_TYPE(ob) == &PyFrozenSet_Type || \ 103 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
|
D | datetime.h | 187 #define PyDate_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateType) 190 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateTimeType) 193 #define PyTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TimeType) 196 #define PyDelta_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DeltaType) 199 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TZInfoType) 214 #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType) 217 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType) 220 #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType) 223 #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType) 226 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TZInfoType)
|
D | context.h | 20 #define PyContext_CheckExact(o) (Py_TYPE(o) == &PyContext_Type) 21 #define PyContextVar_CheckExact(o) (Py_TYPE(o) == &PyContextVar_Type) 22 #define PyContextToken_CheckExact(o) (Py_TYPE(o) == &PyContextToken_Type)
|
D | weakrefobject.h | 49 (Py_TYPE(op) == &_PyWeakref_RefType) 51 ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \ 52 (Py_TYPE(op) == &_PyWeakref_CallableProxyType))
|
D | object.h | 118 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) macro 481 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize)) 487 (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp))) 496 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS) 497 #define PyType_CheckExact(op) (Py_TYPE(op) == &PyType_Type) 754 #define _Py_INC_TPALLOCS(OP) inc_count(Py_TYPE(OP)) 755 #define _Py_INC_TPFREES(OP) dec_count(Py_TYPE(OP)) 756 #define _Py_DEC_TPFREES(OP) Py_TYPE(OP)->tp_frees-- 790 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
|
D | objimpl.h | 144 ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) 243 #define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) && \ 244 (Py_TYPE(o)->tp_is_gc == NULL || Py_TYPE(o)->tp_is_gc(o))) 365 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
|
D | genobject.h | 39 #define PyGen_CheckExact(op) (Py_TYPE(op) == &PyGen_Type) 62 #define PyCoro_CheckExact(op) (Py_TYPE(op) == &PyCoro_Type) 91 #define PyAsyncGen_CheckExact(op) (Py_TYPE(op) == &PyAsyncGen_Type)
|
/external/python/cpython2/Include/ |
D | setobject.h | 69 #define PyFrozenSet_CheckExact(ob) (Py_TYPE(ob) == &PyFrozenSet_Type) 71 (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type) 73 (Py_TYPE(ob) == &PySet_Type || Py_TYPE(ob) == &PyFrozenSet_Type || \ 74 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \ 75 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type)) 77 (Py_TYPE(ob) == &PySet_Type || \ 78 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type)) 80 (Py_TYPE(ob) == &PyFrozenSet_Type || \ 81 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type))
|
D | datetime.h | 171 #define PyDate_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateType) 174 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateTimeType) 177 #define PyTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TimeType) 180 #define PyDelta_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DeltaType) 183 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TZInfoType) 195 #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType) 198 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType) 201 #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType) 204 #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType) 207 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TZInfoType)
|
D | dictobject.h | 100 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_DICT_SUBCLASS) 101 #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type) 102 #define PyDictKeys_Check(op) (Py_TYPE(op) == &PyDictKeys_Type) 103 #define PyDictItems_Check(op) (Py_TYPE(op) == &PyDictItems_Type) 104 #define PyDictValues_Check(op) (Py_TYPE(op) == &PyDictValues_Type)
|
D | weakrefobject.h | 47 (Py_TYPE(op) == &_PyWeakref_RefType) 49 ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \ 50 (Py_TYPE(op) == &_PyWeakref_CallableProxyType))
|
D | object.h | 115 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) macro 433 ((PyMemberDef *)(((char *)etype) + Py_TYPE(etype)->tp_basicsize)) 439 (Py_TYPE(ob) == (tp) || PyType_IsSubtype(Py_TYPE(ob), (tp))) 446 PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS) 447 #define PyType_CheckExact(op) (Py_TYPE(op) == &PyType_Type) 731 #define _Py_INC_TPALLOCS(OP) inc_count(Py_TYPE(OP)) 732 #define _Py_INC_TPFREES(OP) dec_count(Py_TYPE(OP)) 733 #define _Py_DEC_TPFREES(OP) Py_TYPE(OP)->tp_frees-- 764 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
|
D | objimpl.h | 164 ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) 241 #define PyObject_IS_GC(o) (PyType_IS_GC(Py_TYPE(o)) && \ 242 (Py_TYPE(o)->tp_is_gc == NULL || Py_TYPE(o)->tp_is_gc(o))) 364 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
|
/external/python/cpython3/Objects/ |
D | object.c | 234 Py_TYPE(op) = tp; in PyObject_Init() 246 Py_TYPE(op) = tp; in PyObject_InitVar() 275 PyTypeObject *tp = Py_TYPE(self); in PyObject_CallFinalizer() 319 if (PyType_IS_GC(Py_TYPE(self))) { in PyObject_CallFinalizerFromDealloc() 332 --Py_TYPE(self)->tp_frees; in PyObject_CallFinalizerFromDealloc() 333 --Py_TYPE(self)->tp_allocs; in PyObject_CallFinalizerFromDealloc() 475 Py_TYPE(op)==NULL ? "NULL" : Py_TYPE(op)->tp_name, in _PyObject_Dump() 495 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr() 550 if (Py_TYPE(v)->tp_str == NULL) in PyObject_Str() 564 res = (*Py_TYPE(v)->tp_str)(v); in PyObject_Str() [all …]
|
D | enumobject.c | 88 Py_TYPE(en)->tp_free(en); in enum_dealloc() 156 next_item = (*Py_TYPE(it)->tp_iternext)(it); in enum_next() 195 return Py_BuildValue("O(OO)", Py_TYPE(en), en->en_sit, en->en_longindex); in enum_reduce() 197 return Py_BuildValue("O(On)", Py_TYPE(en), en->en_sit, en->en_index); in enum_reduce() 283 Py_TYPE(seq)->tp_name); in reversed_new_impl() 297 Py_TYPE(seq)->tp_name); in reversed_new_impl() 320 Py_TYPE(ro)->tp_free(ro); in reversed_dealloc() 371 return Py_BuildValue("O(O)n", Py_TYPE(ro), ro->seq, ro->index); in reversed_reduce() 373 return Py_BuildValue("O(())", Py_TYPE(ro)); in reversed_reduce()
|
D | typeobject.c | 443 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name() 473 type->tp_name, Py_TYPE(value)->tp_name); in type_set_qualname() 671 type->tp_name, Py_TYPE(new_bases)->tp_name); in type_set_bases() 688 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases() 811 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc() 812 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc() 944 if (!PyType_IsSubtype(Py_TYPE(obj), type)) in type_call() 947 type = Py_TYPE(obj); in type_call() 1030 type = Py_TYPE(self); in subtype_traverse() 1087 type = Py_TYPE(self); in subtype_clear() [all …]
|
D | weakrefobject.c | 109 Py_TYPE(self)->tp_free(self); in weakref_dealloc() 173 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 180 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 286 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__() 289 Py_TYPE(ob)->tp_name); in weakref___new__() 474 Py_TYPE(PyWeakref_GET_OBJECT(proxy))->tp_name, in WRAP_BINARY() 740 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef() 743 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef() 799 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy() 802 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy() [all …]
|
/external/python/cpython3/Modules/ |
D | itertoolsmodule.c | 62 Py_TYPE(gbo)->tp_free(gbo); in groupby_dealloc() 148 value = Py_BuildValue("O(OO)(OOO)", Py_TYPE(lz), in groupby_reduce() 151 value = Py_BuildValue("O(OO)", Py_TYPE(lz), in groupby_reduce() 328 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->parent, lz->tgtkey); in _grouper_reduce() 473 while (obj && Py_TYPE(obj) == &teedataobject_type && in teedataobject_safe_decref() 519 return Py_BuildValue("O(ONO)", Py_TYPE(tdo), tdo->it, in teedataobject_reduce() 553 if (Py_TYPE(next) != &teedataobject_type) in teedataobject_new() 731 return Py_BuildValue("O(())(Oi)", Py_TYPE(to), to->dataobj, to->index); in tee_reduce() 932 Py_TYPE(lz)->tp_free(lz); in cycle_dealloc() 993 return Py_BuildValue("O(N)(Oi)", Py_TYPE(lz), it, lz->saved, 1); in cycle_reduce() [all …]
|
D | _operator.c | 836 Py_TYPE(a)->tp_name, Py_TYPE(b)->tp_name); in _operator__compare_digest_impl() 1033 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ig)->tp_name); in itemgetter_repr() 1037 repr = PyUnicode_FromFormat(reprfmt, Py_TYPE(ig)->tp_name, ig->item); in itemgetter_repr() 1046 return Py_BuildValue("O(O)", Py_TYPE(ig), ig->item); in itemgetter_reduce() 1047 return PyTuple_Pack(2, Py_TYPE(ig), ig->item); in itemgetter_reduce() 1360 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ag)->tp_name); in attrgetter_repr() 1367 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(ag)->tp_name, attr); in attrgetter_repr() 1376 Py_TYPE(ag)->tp_name, attrstrings); in attrgetter_repr() 1391 return Py_BuildValue("ON", Py_TYPE(ag), attrstrings); in attrgetter_reduce() 1551 return PyUnicode_FromFormat("%s(...)", Py_TYPE(mc)->tp_name); in methodcaller_repr() [all …]
|
/external/python/cpython2/Objects/ |
D | object.c | 223 Py_TYPE(op) = tp; in PyObject_Init() 235 Py_TYPE(op) = tp; in PyObject_InitVar() 300 else if (Py_TYPE(op)->tp_print == NULL) { in internal_print() 315 ret = (*Py_TYPE(op)->tp_print)(op, fp, flags); in internal_print() 357 Py_TYPE(op)==NULL ? "NULL" : Py_TYPE(op)->tp_name, in _PyObject_Dump() 376 else if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr() 378 Py_TYPE(v)->tp_name, v); in PyObject_Repr() 385 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr() 403 Py_TYPE(res)->tp_name); in PyObject_Repr() 428 if (Py_TYPE(v)->tp_str == NULL) in _PyObject_Str() [all …]
|
D | weakrefobject.c | 109 Py_TYPE(self)->tp_free(self); in weakref_dealloc() 176 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 184 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 199 if ((op != Py_EQ && op != Py_NE) || Py_TYPE(self) != Py_TYPE(other)) { in weakref_richcompare() 289 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__() 292 Py_TYPE(ob)->tp_name); in weakref___new__() 471 Py_TYPE(PyWeakref_GET_OBJECT(proxy))->tp_name, in WRAP_BINARY() 764 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef() 767 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef() 823 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy() [all …]
|
D | typeobject.c | 263 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name() 462 type->tp_name, Py_TYPE(value)->tp_name); in type_set_bases() 477 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases() 602 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc() 603 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc() 664 Py_TYPE(v)->tp_compare || Py_TYPE(w)->tp_compare) { in type_richcompare() 841 type = Py_TYPE(self); in subtype_traverse() 898 type = Py_TYPE(self); in subtype_clear() 928 type = Py_TYPE(self); in subtype_dealloc() 956 type = Py_TYPE(self); in subtype_dealloc() [all …]
|
/external/python/cpython2/Modules/_io/ |
D | stringio.c | 236 Py_TYPE(arg)->tp_name); in stringio_read() 306 Py_TYPE(arg)->tp_name); in stringio_readline() 320 if (Py_TYPE(self) == &PyStringIO_Type) { in stringio_iternext() 331 "not '%.200s'", Py_TYPE(line)->tp_name); in stringio_iternext() 378 Py_TYPE(arg)->tp_name); in stringio_truncate() 468 Py_TYPE(obj)->tp_name); in stringio_write() 528 Py_TYPE(self)->tp_free(self); in stringio_dealloc() 575 Py_TYPE(value)->tp_name); in stringio_init() 724 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in stringio_setstate() 760 Py_TYPE(position_obj)->tp_name); in stringio_setstate() [all …]
|
D | bytesio.c | 250 Py_TYPE(arg)->tp_name); in bytesio_read() 319 Py_TYPE(arg)->tp_name); in bytesio_readline() 365 Py_TYPE(arg)->tp_name); in bytesio_readlines() 457 Py_TYPE(arg)->tp_name); in bytesio_truncate() 686 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in bytesio_setstate() 708 Py_TYPE(position_obj)->tp_name); in bytesio_setstate() 727 Py_TYPE(dict)->tp_name); in bytesio_setstate() 757 Py_TYPE(self)->tp_free(self); in bytesio_dealloc() 813 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof()
|
/external/tensorflow/tensorflow/python/client/ |
D | tf_session.i | 256 Py_TYPE($input)->tp_name).c_str()); 285 i, Py_TYPE(elem)->tp_name).c_str()); 346 if (strcmp(Py_TYPE($input)->tp_name, "ScopedTFStatus") == 0) { 355 DCHECK_EQ(strcmp(Py_TYPE(wrapped_tf_status)->tp_name, "SwigPyObject"), 0) 356 << Py_TYPE(wrapped_tf_status)->tp_name; 460 Py_TYPE($input)->tp_name).c_str()); 675 Py_TYPE($input)->tp_name).c_str()); 718 Py_TYPE($input)->tp_name).c_str()); 736 Py_TYPE($input)->tp_name).c_str()); 755 Py_TYPE($input)->tp_name).c_str()); [all …]
|