/external/python/cpython2/Objects/ |
D | abstract.c | 8 #define NEW_STYLE_NUMBER(o) PyType_HasFeature((o)->ob_type, \ 17 PyErr_Format(PyExc_TypeError, msg, obj->ob_type->tp_name); in type_error() 55 v = (PyObject *)o->ob_type; in PyObject_Type() 70 m = o->ob_type->tp_as_sequence; in PyObject_Size() 142 m = o->ob_type->tp_as_mapping; in PyObject_GetItem() 146 if (o->ob_type->tp_as_sequence) { in PyObject_GetItem() 154 else if (o->ob_type->tp_as_sequence->sq_item) in PyObject_GetItem() 171 m = o->ob_type->tp_as_mapping; in PyObject_SetItem() 175 if (o->ob_type->tp_as_sequence) { in PyObject_SetItem() 183 else if (o->ob_type->tp_as_sequence->sq_ass_item) { in PyObject_SetItem() [all …]
|
D | object.c | 618 if (v->ob_type != w->ob_type && in try_rich_compare() 619 PyType_IsSubtype(w->ob_type, v->ob_type) && in try_rich_compare() 620 (f = RICHCOMPARE(w->ob_type)) != NULL) { in try_rich_compare() 626 if ((f = RICHCOMPARE(v->ob_type)) != NULL) { in try_rich_compare() 632 if ((f = RICHCOMPARE(w->ob_type)) != NULL) { in try_rich_compare() 653 if (RICHCOMPARE(v->ob_type) == NULL && RICHCOMPARE(w->ob_type) == NULL) in try_rich_compare_bool() 685 if (RICHCOMPARE(v->ob_type) == NULL && RICHCOMPARE(w->ob_type) == NULL) in try_rich_to_3way_compare() 716 f = v->ob_type->tp_compare; in try_3way_compare() 720 return (*w->ob_type->tp_compare)(v, w); in try_3way_compare() 723 if (f != NULL && f == w->ob_type->tp_compare) { in try_3way_compare() [all …]
|
D | genobject.c | 193 assert(PyType_IS_GC(self->ob_type) && in gen_del() 206 --self->ob_type->tp_frees; in gen_del() 207 --self->ob_type->tp_allocs; in gen_del() 264 typ->ob_type->tp_name); in gen_throw()
|
D | cobject.c | 72 if (self->ob_type == &PyCObject_Type) in PyCObject_AsVoidPtr() 87 if (self->ob_type == &PyCObject_Type) in PyCObject_GetDesc()
|
D | descrobject.c | 73 obj->ob_type->tp_name); in descr_check() 86 type = (PyObject *)obj->ob_type; in classmethod_get() 103 type->ob_type->tp_name); in classmethod_get() 175 obj->ob_type->tp_name); in descr_setcheck() 235 self->ob_type->tp_name); in methoddescr_call() 277 self->ob_type->tp_name); in classmethoddescr_call() 287 self->ob_type->tp_name); in classmethoddescr_call() 331 self->ob_type->tp_name); in wrapperdescr_call() 980 wp->self->ob_type->tp_name, in wrapper_repr() 1218 self->ob_type->tp_free(self); in property_dealloc()
|
D | bufferobject.c | 158 PyBufferProcs *pb = base->ob_type->tp_as_buffer; in PyBuffer_FromObject() 174 PyBufferProcs *pb = base->ob_type->tp_as_buffer; in PyBuffer_FromReadWriteObject() 382 PyBufferProcs *pb = other->ob_type->tp_as_buffer; in buffer_concat() 574 pb = other ? other->ob_type->tp_as_buffer : NULL; in buffer_ass_item_impl() 634 pb = other ? other->ob_type->tp_as_buffer : NULL; in buffer_ass_slice() 691 pb = value ? value->ob_type->tp_as_buffer : NULL; in buffer_ass_subscript()
|
/external/python/cpython2/Modules/ |
D | bsddb.h | 303 #define DBObject_Check(v) ((v)->ob_type == bsddb_api->db_type) 304 #define DBCursorObject_Check(v) ((v)->ob_type == bsddb_api->dbcursor_type) 305 #define DBEnvObject_Check(v) ((v)->ob_type == bsddb_api->dbenv_type) 306 #define DBTxnObject_Check(v) ((v)->ob_type == bsddb_api->dbtxn_type) 307 #define DBLockObject_Check(v) ((v)->ob_type == bsddb_api->dblock_type) 310 ((v)->ob_type == bsddb_api->dbsequence_type))
|
/external/python/cpython2/Include/ |
D | abstract.h | 535 (((obj)->ob_type->tp_as_buffer != NULL) && \ 536 (PyType_HasFeature((obj)->ob_type, Py_TPFLAGS_HAVE_NEWBUFFER)) && \ 537 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL)) 638 (PyType_HasFeature((obj)->ob_type, Py_TPFLAGS_HAVE_ITER) && \ 639 (obj)->ob_type->tp_iternext != NULL && \ 640 (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented) 849 ((obj)->ob_type->tp_as_number != NULL && \ 850 PyType_HasFeature((obj)->ob_type, Py_TPFLAGS_HAVE_INDEX) && \ 851 (obj)->ob_type->tp_as_number->nb_index != NULL)
|
D | classobject.h | 41 #define PyClass_Check(op) ((op)->ob_type == &PyClass_Type) 42 #define PyInstance_Check(op) ((op)->ob_type == &PyInstance_Type) 43 #define PyMethod_Check(op) ((op)->ob_type == &PyMethod_Type)
|
/external/python/cpython2/Modules/_sqlite/ |
D | sqlitecompat.h | 39 #define PyDict_CheckExact(op) ((op)->ob_type == &PyDict_Type) 60 #define Py_TYPE(ob) ((ob)->ob_type)
|
/external/tensorflow/tensorflow/python/framework/ |
D | python_api_dispatcher.cc | 74 value->ob_type != dispatch_types.back()) { in FindDispatchTypes() 75 dispatch_types.push_back(item->ob_type); in FindDispatchTypes() 81 if (dispatch_types.empty() || value->ob_type != dispatch_types.back()) { in FindDispatchTypes() 82 dispatch_types.push_back(value->ob_type); in FindDispatchTypes()
|
D | op_def_util.cc | 140 if (reinterpret_cast<PyObject*>(value->ob_type) == dtype) { in operator ()() 156 if (reinterpret_cast<PyObject*>(value->ob_type) == shape) { in operator ()() 173 if (reinterpret_cast<PyObject*>(value->ob_type) == tensor_proto) { in operator ()() 331 value->ob_type->tp_name, "' to type '", in ConvertPyObjectToAttributeType()
|
/external/python/cpython2/Mac/Modules/carbonevt/ |
D | _CarbonEvtmodule.c | 112 #define EventRef_Check(x) ((x)->ob_type == &EventRef_Type || PyObject_TypeCheck((x), &EventRef_Type… 142 self->ob_type->tp_free((PyObject *)self); in EventRef_dealloc() 457 #define EventQueueRef_Check(x) ((x)->ob_type == &EventQueueRef_Type || PyObject_TypeCheck((x), &Eve… 487 self->ob_type->tp_free((PyObject *)self); in EventQueueRef_dealloc() 678 #define EventLoopRef_Check(x) ((x)->ob_type == &EventLoopRef_Type || PyObject_TypeCheck((x), &Event… 708 self->ob_type->tp_free((PyObject *)self); in EventLoopRef_dealloc() 808 #define EventLoopTimerRef_Check(x) ((x)->ob_type == &EventLoopTimerRef_Type || PyObject_TypeCheck((… 838 self->ob_type->tp_free((PyObject *)self); in EventLoopTimerRef_dealloc() 956 #define EventHandlerRef_Check(x) ((x)->ob_type == &EventHandlerRef_Type || PyObject_TypeCheck((x), … 991 self->ob_type->tp_free((PyObject *)self); in EventHandlerRef_dealloc() [all …]
|
/external/python/cpython2/Lib/ |
D | copy_reg.py | 14 def pickle(ob_type, pickle_function, constructor_ob=None): argument 15 if type(ob_type) is _ClassType: 20 dispatch_table[ob_type] = pickle_function
|
/external/python/cpython2/Modules/_ctypes/ |
D | ctypes.h | 26 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type) 145 #define PyCStgDict_CheckExact(v) ((v)->ob_type == &PyCStgDict_Type) 155 #define CDataObject_CheckExact(v) ((v)->ob_type == &PyCData_Type) 160 #define PyCSimpleTypeObject_CheckExact(v) ((v)->ob_type == &PyCSimpleType_Type) 357 #define PyCArg_CheckExact(v) ((v)->ob_type == &PyCArg_Type)
|
/external/python/cpython2/Mac/Modules/ibcarbon/ |
D | _IBCarbon.c | 23 #define IBNibRefObj_Check(x) ((x)->ob_type == &IBNibRef_Type || PyObject_TypeCheck((x), &IBNibRef_T… 53 self->ob_type->tp_free((PyObject *)self); in IBNibRefObj_dealloc() 259 IBNibRef_Type.ob_type = &PyType_Type; in init_IBCarbon()
|
/external/python/cpython2/Mac/Modules/cf/ |
D | pycfbridge.c | 168 src->ob_type->tp_name); in PyCF_Python2CF_sequence() 207 src->ob_type->tp_name); in PyCF_Python2CF_mapping() 274 src->ob_type->tp_name); in PyCF_Python2CF_simple() 301 src->ob_type->tp_name); in PyCF_Python2CF_string()
|
/external/python/cpython3/Include/ |
D | object.h | 108 PyTypeObject *ob_type; member 124 #define Py_TYPE(ob) (_PyObject_CAST(ob)->ob_type) 128 return ob->ob_type == type; in _Py_IS_TYPE() 138 ob->ob_type = type; in _Py_SET_TYPE()
|
/external/python/cpython3/Lib/ |
D | copyreg.py | 12 def pickle(ob_type, pickle_function, constructor_ob=None): argument 15 dispatch_table[ob_type] = pickle_function
|
/external/python/cpython2/Python/ |
D | bltinmodule.c | 185 alist->ob_type->tp_name); in builtin_apply() 197 kwdict->ob_type->tp_name); in builtin_apply() 1115 it->ob_type->tp_name); in builtin_next() 1119 res = (*it->ob_type->tp_iternext)(it); in builtin_next() 1212 if ((nb = v->ob_type->tp_as_number) == NULL || in builtin_hex() 1222 res->ob_type->tp_name); in builtin_hex() 1480 if (v == NULL || (nb = v->ob_type->tp_as_number) == NULL || in builtin_oct() 1490 res->ob_type->tp_name); in builtin_oct() 1546 "%.200s found", obj->ob_type->tp_name); in builtin_ord() 1639 sep->ob_type->tp_name); in builtin_print() [all …]
|
D | Python-ast.c | 3344 …rmat(PyExc_TypeError, "Module field \"body\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_mod() 3384 …PyExc_TypeError, "Interactive field \"body\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_mod() 3447 …ormat(PyExc_TypeError, "Suite field \"body\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_mod() 3560 …PyExc_TypeError, "FunctionDef field \"body\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() 3589 …Error, "FunctionDef field \"decorator_list\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() 3645 …t(PyExc_TypeError, "ClassDef field \"bases\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() 3674 …at(PyExc_TypeError, "ClassDef field \"body\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() 3703 …ypeError, "ClassDef field \"decorator_list\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() 3766 …t(PyExc_TypeError, "Delete field \"targets\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() 3807 …t(PyExc_TypeError, "Assign field \"targets\" must be a list, not a %.200s", tmp->ob_type->tp_name); in obj2ast_stmt() [all …]
|
/external/python/cpython2/Mac/Modules/scrap/ |
D | _Scrapmodule.c | 27 #define ScrapObj_Check(x) ((x)->ob_type == &Scrap_Type || PyObject_TypeCheck((x), &Scrap_Type)) 56 self->ob_type->tp_free((PyObject *)self); in ScrapObj_dealloc() 357 Scrap_Type.ob_type = &PyType_Type; in init_Scrap()
|
/external/python/cpython2/Mac/Modules/cm/ |
D | _Cmmodule.c | 63 #define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type || PyObject_TypeCheck((x), &Co… 97 self->ob_type->tp_free((PyObject *)self); in CmpInstObj_dealloc() 334 #define CmpObj_Check(x) ((x)->ob_type == &Component_Type || PyObject_TypeCheck((x), &Component_Type… 373 self->ob_type->tp_free((PyObject *)self); in CmpObj_dealloc() 938 ComponentInstance_Type.ob_type = &PyType_Type; in init_Cm() 945 Component_Type.ob_type = &PyType_Type; in init_Cm()
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/_setup/include/ |
D | cext.h | 238 if (PyType_IS_GC(((PyObject *)self)->ob_type)) \ 241 ((PyObject *)self)->ob_type->tp_free((PyObject *)self); \
|
/external/python/cpython2/Mac/Modules/file/ |
D | _Filemodule.c | 169 #define FSCatalogInfo_Check(x) ((x)->ob_type == &FSCatalogInfo_Type || PyObject_TypeCheck((x), &FSC… 200 self->ob_type->tp_free((PyObject *)self); in FSCatalogInfo_dealloc() 547 #define FInfo_Check(x) ((x)->ob_type == &FInfo_Type || PyObject_TypeCheck((x), &FInfo_Type)) 578 self->ob_type->tp_free((PyObject *)self); in FInfo_dealloc() 734 #define Alias_Check(x) ((x)->ob_type == &Alias_Type || PyObject_TypeCheck((x), &Alias_Type)) 771 self->ob_type->tp_free((PyObject *)self); in Alias_dealloc() 1086 #define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type || PyObject_TypeCheck((x), &FSSpec_Type)) 1106 self->ob_type->tp_free((PyObject *)self); in FSSpec_dealloc() 1439 self->ob_type->tp_name, in FSSpec_repr() 1546 #define FSRef_Check(x) ((x)->ob_type == &FSRef_Type || PyObject_TypeCheck((x), &FSRef_Type)) [all …]
|