Home
last modified time | relevance | path

Searched refs:Py_TYPE (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/python/cpython2/Include/
Dsetobject.h69 #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))
Ddatetime.h171 #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)
Ddictobject.h100 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)
Dweakrefobject.h47 (Py_TYPE(op) == &_PyWeakref_RefType)
49 ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
50 (Py_TYPE(op) == &_PyWeakref_CallableProxyType))
Dobjimpl.h164 ( 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)))
349 ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
Dobject.h115 #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)))
/external/python/cpython3/Include/
Dsetobject.h91 #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))
Ddatetime.h183 #define PyDate_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateType)
186 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DateTimeType)
189 #define PyTime_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TimeType)
192 #define PyDelta_CheckExact(op) (Py_TYPE(op) == &PyDateTime_DeltaType)
195 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == &PyDateTime_TZInfoType)
207 #define PyDate_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateType)
210 #define PyDateTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DateTimeType)
213 #define PyTime_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TimeType)
216 #define PyDelta_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->DeltaType)
219 #define PyTZInfo_CheckExact(op) (Py_TYPE(op) == PyDateTimeAPI->TZInfoType)
Dweakrefobject.h49 (Py_TYPE(op) == &_PyWeakref_RefType)
51 ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
52 (Py_TYPE(op) == &_PyWeakref_CallableProxyType))
Dobject.h118 #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)
743 #define _Py_INC_TPALLOCS(OP) inc_count(Py_TYPE(OP))
744 #define _Py_INC_TPFREES(OP) dec_count(Py_TYPE(OP))
745 #define _Py_DEC_TPFREES(OP) Py_TYPE(OP)->tp_frees--
779 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
Dobjimpl.h144 ( 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))
Dgenobject.h38 #define PyGen_CheckExact(op) (Py_TYPE(op) == &PyGen_Type)
61 #define PyCoro_CheckExact(op) (Py_TYPE(op) == &PyCoro_Type)
90 #define PyAsyncGen_CheckExact(op) (Py_TYPE(op) == &PyAsyncGen_Type)
/external/python/cpython3/Objects/
Dobject.c245 Py_TYPE(op) = tp; in PyObject_Init()
257 Py_TYPE(op) = tp; in PyObject_InitVar()
286 PyTypeObject *tp = Py_TYPE(self); in PyObject_CallFinalizer()
330 if (PyType_IS_GC(Py_TYPE(self))) { in PyObject_CallFinalizerFromDealloc()
343 --Py_TYPE(self)->tp_frees; in PyObject_CallFinalizerFromDealloc()
344 --Py_TYPE(self)->tp_allocs; in PyObject_CallFinalizerFromDealloc()
454 Py_TYPE(op)==NULL ? "NULL" : Py_TYPE(op)->tp_name, in _PyObject_Dump()
474 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr()
524 if (Py_TYPE(v)->tp_str == NULL) in PyObject_Str()
538 res = (*Py_TYPE(v)->tp_str)(v); in PyObject_Str()
[all …]
Denumobject.c68 Py_TYPE(en)->tp_free(en); in enum_dealloc()
130 next_item = (*Py_TYPE(it)->tp_iternext)(it); in enum_next()
165 return Py_BuildValue("O(OO)", Py_TYPE(en), en->en_sit, en->en_longindex); in enum_reduce()
167 return Py_BuildValue("O(On)", Py_TYPE(en), en->en_sit, en->en_index); in enum_reduce()
257 Py_TYPE(seq)->tp_name); in reversed_new()
271 Py_TYPE(seq)->tp_name); in reversed_new()
294 Py_TYPE(ro)->tp_free(ro); in reversed_dealloc()
350 return Py_BuildValue("O(O)n", Py_TYPE(ro), ro->seq, ro->index); in reversed_reduce()
352 return Py_BuildValue("O(())", Py_TYPE(ro)); in reversed_reduce()
Dtypeobject.c414 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
444 type->tp_name, Py_TYPE(value)->tp_name); in type_set_qualname()
643 type->tp_name, Py_TYPE(new_bases)->tp_name); in type_set_bases()
660 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases()
782 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc()
783 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc()
910 if (!PyType_IsSubtype(Py_TYPE(obj), type)) in type_call()
913 type = Py_TYPE(obj); in type_call()
996 type = Py_TYPE(self); in subtype_traverse()
1053 type = Py_TYPE(self); in subtype_clear()
[all …]
Dweakrefobject.c109 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/cpython2/Objects/
Dobject.c223 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()
381 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr()
398 Py_TYPE(res)->tp_name); in PyObject_Repr()
423 if (Py_TYPE(v)->tp_str == NULL) in _PyObject_Str()
[all …]
Dtypeobject.c263 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 …]
Dweakrefobject.c107 Py_TYPE(self)->tp_free(self); in weakref_dealloc()
174 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr()
182 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr()
287 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__()
290 Py_TYPE(ob)->tp_name); in weakref___new__()
469 Py_TYPE(PyWeakref_GET_OBJECT(proxy))->tp_name, in WRAP_BINARY()
762 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef()
765 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef()
821 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy()
824 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy()
[all …]
/external/python/cpython3/Modules/
Ditertoolsmodule.c61 Py_TYPE(gbo)->tp_free(gbo); in groupby_dealloc()
135 value = Py_BuildValue("O(OO)(OOO)", Py_TYPE(lz), in groupby_reduce()
138 value = Py_BuildValue("O(OO)", Py_TYPE(lz), in groupby_reduce()
324 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->parent, lz->tgtkey); in _grouper_reduce()
469 while (obj && Py_TYPE(obj) == &teedataobject_type && in teedataobject_safe_decref()
515 return Py_BuildValue("O(ONO)", Py_TYPE(tdo), tdo->it, in teedataobject_reduce()
549 if (Py_TYPE(next) != &teedataobject_type) in teedataobject_new()
727 return Py_BuildValue("O(())(Oi)", Py_TYPE(to), to->dataobj, to->index); in tee_reduce()
912 Py_TYPE(lz)->tp_free(lz); in cycle_dealloc()
973 return Py_BuildValue("O(N)(Oi)", Py_TYPE(lz), it, lz->saved, 1); in cycle_reduce()
[all …]
/external/python/cpython2/Modules/_io/
Dstringio.c236 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 …]
Dbytesio.c250 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()
756 Py_TYPE(self)->tp_free(self); in bytesio_dealloc()
812 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof()
/external/python/cpython3/Modules/_io/
Dstringio.c334 Py_TYPE(arg)->tp_name); in _io_StringIO_read_impl()
416 Py_TYPE(arg)->tp_name); in _io_StringIO_readline_impl()
431 if (Py_TYPE(self) == &PyStringIO_Type) { in stringio_iternext()
442 "not '%.200s'", Py_TYPE(line)->tp_name); in stringio_iternext()
492 Py_TYPE(arg)->tp_name); in _io_StringIO_truncate_impl()
585 Py_TYPE(obj)->tp_name); in _io_StringIO_write()
655 Py_TYPE(self)->tp_free(self); in stringio_dealloc()
708 Py_TYPE(newline_obj)->tp_name); in _io_StringIO___init___impl()
727 Py_TYPE(value)->tp_name); in _io_StringIO___init___impl()
901 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in stringio_setstate()
[all …]
Dbytesio.c405 Py_TYPE(arg)->tp_name); in _io_BytesIO_read_impl()
470 Py_TYPE(arg)->tp_name); in _io_BytesIO_readline_impl()
512 Py_TYPE(arg)->tp_name); in _io_BytesIO_readlines_impl()
611 Py_TYPE(arg)->tp_name); in _io_BytesIO_truncate_impl()
849 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in bytesio_setstate()
872 Py_TYPE(position_obj)->tp_name); in bytesio_setstate()
891 Py_TYPE(dict)->tp_name); in bytesio_setstate()
922 Py_TYPE(self)->tp_free(self); in bytesio_dealloc()
991 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof()
1135 Py_TYPE(self)->tp_free(self); in bytesiobuf_dealloc()
/external/tensorflow/tensorflow/python/client/
Dtf_session.i232 Py_TYPE($input)->tp_name).c_str());
261 i, Py_TYPE(elem)->tp_name).c_str());
322 if (strcmp(Py_TYPE($input)->tp_name, "ScopedTFStatus") == 0) {
331 DCHECK_EQ(strcmp(Py_TYPE(wrapped_tf_status)->tp_name, "SwigPyObject"), 0)
332 << Py_TYPE(wrapped_tf_status)->tp_name;
596 Py_TYPE($input)->tp_name).c_str());
639 Py_TYPE($input)->tp_name).c_str());
657 Py_TYPE($input)->tp_name).c_str());
676 Py_TYPE($input)->tp_name).c_str());
701 Py_TYPE($input)->tp_name).c_str());

12345678910>>...13