Home
last modified time | relevance | path

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

123456789

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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))
Diterobject.h10 #define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)
16 #define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)
DcStringIO.h66 (Py_TYPE(O)==PycStringIO->InputType)
68 (Py_TYPE(O)==PycStringIO->OutputType)
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)))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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))
Diterobject.h10 #define PySeqIter_Check(op) (Py_TYPE(op) == &PySeqIter_Type)
16 #define PyCallIter_Check(op) (Py_TYPE(op) == &PyCallIter_Type)
DcStringIO.h66 (Py_TYPE(O)==PycStringIO->InputType)
68 (Py_TYPE(O)==PycStringIO->OutputType)
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)
719 #define _Py_INC_TPALLOCS(OP) inc_count(Py_TYPE(OP))
720 #define _Py_INC_TPFREES(OP) dec_count(Py_TYPE(OP))
721 #define _Py_DEC_TPFREES(OP) Py_TYPE(OP)->tp_frees--
752 (*Py_TYPE(op)->tp_dealloc)((PyObject *)(op)))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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.c243 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
442 type->tp_name, Py_TYPE(value)->tp_name); in type_set_bases()
457 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases()
582 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc()
583 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc()
644 Py_TYPE(v)->tp_compare || Py_TYPE(w)->tp_compare) { in type_richcompare()
821 type = Py_TYPE(self); in subtype_traverse()
878 type = Py_TYPE(self); in subtype_clear()
908 type = Py_TYPE(self); in subtype_dealloc()
936 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()
288 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__()
291 Py_TYPE(ob)->tp_name); in weakref___new__()
467 Py_TYPE(PyWeakref_GET_OBJECT(proxy))->tp_name, in WRAP_BINARY()
760 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef()
763 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef()
819 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy()
822 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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.c242 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
436 type->tp_name, Py_TYPE(value)->tp_name); in type_set_bases()
451 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases()
576 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc()
577 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc()
638 Py_TYPE(v)->tp_compare || Py_TYPE(w)->tp_compare) { in type_richcompare()
813 type = Py_TYPE(self); in subtype_traverse()
870 type = Py_TYPE(self); in subtype_clear()
894 type = Py_TYPE(self); in subtype_dealloc()
922 type = Py_TYPE(self); in subtype_dealloc()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_sqlite/
Dprepare_protocol.c34 Py_TYPE(self)->tp_free((PyObject*)self); in pysqlite_prepare_protocol_dealloc()
82 Py_TYPE(&pysqlite_PrepareProtocolType)= &PyType_Type; in pysqlite_prepare_protocol_setup_types()
Dsqlitecompat.h59 #ifndef Py_TYPE
60 #define Py_TYPE(ob) ((ob)->ob_type) macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/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()
711 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in stringio_setstate()
747 Py_TYPE(position_obj)->tp_name); in stringio_setstate()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/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 …]

123456789