/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 | 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 | cobject.c | 72 if (self->ob_type == &PyCObject_Type) in PyCObject_AsVoidPtr() 87 if (self->ob_type == &PyCObject_Type) in PyCObject_GetDesc()
|
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/cpython3/Objects/ |
D | abstract.c | 16 PyErr_Format(PyExc_TypeError, msg, obj->ob_type->tp_name); in type_error() 40 v = (PyObject *)o->ob_type; in PyObject_Type() 55 m = o->ob_type->tp_as_sequence; in PyObject_Size() 152 m = o->ob_type->tp_as_mapping; in PyObject_GetItem() 159 ms = o->ob_type->tp_as_sequence; in PyObject_GetItem() 199 m = o->ob_type->tp_as_mapping; in PyObject_SetItem() 203 if (o->ob_type->tp_as_sequence) { in PyObject_SetItem() 211 else if (o->ob_type->tp_as_sequence->sq_ass_item) { in PyObject_SetItem() 231 m = o->ob_type->tp_as_mapping; in PyObject_DelItem() 235 if (o->ob_type->tp_as_sequence) { in PyObject_DelItem() [all …]
|
D | object.c | 391 s->ob_type->tp_name); in PyObject_Print() 428 int freed = _PyMem_IsFreed(&op->ob_type, sizeof(op->ob_type)); in _PyObject_IsFreed() 497 v->ob_type->tp_name, v); in PyObject_Repr() 510 res = (*v->ob_type->tp_repr)(v); in PyObject_Repr() 517 res->ob_type->tp_name); in PyObject_Repr() 687 if (v->ob_type != w->ob_type && in do_richcompare() 688 PyType_IsSubtype(w->ob_type, v->ob_type) && in do_richcompare() 689 (f = w->ob_type->tp_richcompare) != NULL) { in do_richcompare() 696 if ((f = v->ob_type->tp_richcompare) != NULL) { in do_richcompare() 702 if (!checked_reverse_op && (f = w->ob_type->tp_richcompare) != NULL) { in do_richcompare() [all …]
|
D | classobject.c | 136 PyTypeObject *tp = obj->ob_type; in method_getattro() 148 descrgetfunc f = TP_DESCR_GET(descr->ob_type); in method_getattro() 150 return f(descr, obj, (PyObject *)obj->ob_type); in method_getattro() 453 PyTypeObject *tp = self->ob_type; in instancemethod_getattro() 463 descrgetfunc f = TP_DESCR_GET(descr->ob_type); in instancemethod_getattro() 465 return f(descr, self, (PyObject *)self->ob_type); in instancemethod_getattro()
|
D | descrobject.c | 83 obj->ob_type->tp_name); in descr_check() 96 type = (PyObject *)obj->ob_type; in classmethod_get() 113 type->ob_type->tp_name); in classmethod_get() 185 obj->ob_type->tp_name); in descr_setcheck() 245 self->ob_type->tp_name); in methoddescr_call() 284 self->ob_type->tp_name); in _PyMethodDescr_FastCallKeywords() 319 self->ob_type->tp_name); in classmethoddescr_call() 329 self->ob_type->tp_name); in classmethoddescr_call() 386 self->ob_type->tp_name); in wrapperdescr_call() 1079 wp->self->ob_type->tp_name, in wrapper_repr() [all …]
|
D | listobject.c | 475 bb->ob_type->tp_name); in list_concat() 871 iternext = *it->ob_type->tp_iternext; in list_extend() 1998 if (v->ob_type->tp_richcompare != ms->key_richcompare) in unsafe_object_compare() 2035 assert(v->ob_type == w->ob_type); in unsafe_latin_compare() 2036 assert(v->ob_type == &PyUnicode_Type); in unsafe_latin_compare() 2058 assert(v->ob_type == w->ob_type); in unsafe_long_compare() 2059 assert(v->ob_type == &PyLong_Type); in unsafe_long_compare() 2086 assert(v->ob_type == w->ob_type); in unsafe_float_compare() 2087 assert(v->ob_type == &PyFloat_Type); in unsafe_float_compare() 2108 assert(v->ob_type == w->ob_type); in unsafe_tuple_compare() [all …]
|
/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/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/cpython3/Modules/_ctypes/ |
D | ctypes.h | 71 #define CThunk_CheckExact(v) ((v)->ob_type == &PyCThunk_Type) 105 #define PyCStgDict_CheckExact(v) ((v)->ob_type == &PyCStgDict_Type) 115 #define CDataObject_CheckExact(v) ((v)->ob_type == &PyCData_Type) 120 #define PyCSimpleTypeObject_CheckExact(v) ((v)->ob_type == &PyCSimpleType_Type) 315 #define PyCArg_CheckExact(v) ((v)->ob_type == &PyCArg_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/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/cpython3/Include/ |
D | classobject.h | 21 #define PyMethod_Check(op) ((op)->ob_type == &PyMethod_Type) 44 #define PyInstanceMethod_Check(op) ((op)->ob_type == &PyInstanceMethod_Type)
|
D | abstract.h | 512 (((obj)->ob_type->tp_as_buffer != NULL) && \ 513 ((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL)) 594 ((obj)->ob_type->tp_iternext != NULL && \ 595 (obj)->ob_type->tp_iternext != &_PyObject_NextNotImplemented) 714 ((obj)->ob_type->tp_as_number != NULL && \ 715 (obj)->ob_type->tp_as_number->nb_index != NULL)
|
/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/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/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/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 …]
|
/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
|