Home
last modified time | relevance | path

Searched refs:tp_name (Results 1 – 25 of 216) sorted by relevance

123456789

/external/python/cpython3/Objects/
Ddescrobject.c38 return PyUnicode_FromFormat(format, name, "?", descr->d_type->tp_name); in descr_repr()
82 descr->d_type->tp_name, in descr_check()
83 obj->ob_type->tp_name); in descr_check()
103 PyDescr_TYPE(descr)->tp_name); in classmethod_get()
112 PyDescr_TYPE(descr)->tp_name, in classmethod_get()
113 type->ob_type->tp_name); in classmethod_get()
121 PyDescr_TYPE(descr)->tp_name, in classmethod_get()
122 ((PyTypeObject *)type)->tp_name); in classmethod_get()
160 PyDescr_TYPE(descr)->tp_name); in getset_get()
184 descr->d_type->tp_name, in descr_setcheck()
[all …]
Dstructseq.c104 type->tp_name); in structseq_new_impl()
118 type->tp_name, min_len, len); in structseq_new_impl()
126 type->tp_name, max_len, len); in structseq_new_impl()
135 type->tp_name, min_len, len); in structseq_new_impl()
185 len = strlen(typ->tp_name) > TYPE_MAXSIZE ? TYPE_MAXSIZE : in structseq_repr()
186 strlen(typ->tp_name); in structseq_repr()
187 strncpy(pbuf, typ->tp_name, len); in structseq_repr()
198 " for type %.500s", i, typ->tp_name); in structseq_repr()
355 type->tp_name = desc->name; in PyStructSequence_InitType2()
Dobject.c109 tp->tp_name, tp->tp_allocs, tp->tp_frees, in dump_counts()
133 v = Py_BuildValue("(snnn)", tp->tp_name, tp->tp_allocs, in get_counts()
391 s->ob_type->tp_name); in PyObject_Print()
475 Py_TYPE(op)==NULL ? "NULL" : Py_TYPE(op)->tp_name, in _PyObject_Dump()
497 v->ob_type->tp_name, v); in PyObject_Repr()
517 res->ob_type->tp_name); in PyObject_Repr()
571 Py_TYPE(res)->tp_name); in PyObject_Str()
632 Py_TYPE(result)->tp_name); in PyObject_Bytes()
721 v->ob_type->tp_name, in do_richcompare()
722 w->ob_type->tp_name); in do_richcompare()
[all …]
Dtypeobject.c381 "can't set %s.%s", type->tp_name, name); in check_set_special_type_attr()
386 "can't delete %s.%s", type->tp_name, name); in check_set_special_type_attr()
395 const char *s = strrchr(type->tp_name, '.'); in _PyType_Name()
397 s = type->tp_name; in _PyType_Name()
435 const char *tp_name; in type_set_name() local
443 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
447 tp_name = PyUnicode_AsUTF8AndSize(value, &name_size); in type_set_name()
448 if (tp_name == NULL) in type_set_name()
450 if (strlen(tp_name) != (size_t)name_size) { in type_set_name()
456 type->tp_name = tp_name; in type_set_name()
[all …]
Dabstract.c16 PyErr_Format(PyExc_TypeError, msg, obj->ob_type->tp_name); in type_error()
126 Py_TYPE(result)->tp_name); in PyObject_LengthHint()
361 Py_TYPE(obj)->tp_name); in PyObject_GetBuffer()
708 Py_TYPE(format_spec)->tp_name); in PyObject_Format()
735 Py_TYPE(obj)->tp_name); in PyObject_Format()
746 Py_TYPE(result)->tp_name); in PyObject_Format()
828 v->ob_type->tp_name, in binop_type_error()
829 w->ob_type->tp_name); in binop_type_error()
849 v->ob_type->tp_name, in binary_op()
850 w->ob_type->tp_name); in binary_op()
[all …]
/external/python/cpython2/Objects/
Ddescrobject.c28 descr->d_type->tp_name); in descr_repr()
72 descr->d_type->tp_name, in descr_check()
73 obj->ob_type->tp_name); in descr_check()
93 descr->d_type->tp_name); in classmethod_get()
102 descr->d_type->tp_name, in classmethod_get()
103 type->ob_type->tp_name); in classmethod_get()
111 descr->d_type->tp_name, in classmethod_get()
112 ((PyTypeObject *)type)->tp_name); in classmethod_get()
150 descr->d_type->tp_name); in getset_get()
174 descr->d_type->tp_name, in descr_setcheck()
[all …]
Dstructseq.c165 type->tp_name); in structseq_new()
179 type->tp_name, min_len, len); in structseq_new()
187 type->tp_name, max_len, len); in structseq_new()
196 type->tp_name, min_len, len); in structseq_new()
255 len = strlen(typ->tp_name) > TYPE_MAXSIZE ? TYPE_MAXSIZE : in structseq_repr()
256 strlen(typ->tp_name); in structseq_repr()
257 strncpy(pbuf, typ->tp_name, len); in structseq_repr()
498 type->tp_name = desc->name; in PyStructSequence_InitType()
Dobject.c98 tp->tp_name, tp->tp_allocs, tp->tp_frees, in dump_counts()
122 v = Py_BuildValue("(snnn)", tp->tp_name, tp->tp_allocs, in get_counts()
357 Py_TYPE(op)==NULL ? "NULL" : Py_TYPE(op)->tp_name, in _PyObject_Dump()
378 Py_TYPE(v)->tp_name, v); in PyObject_Repr()
403 Py_TYPE(res)->tp_name); in PyObject_Repr()
446 Py_TYPE(res)->tp_name); in _PyObject_Str()
794 vname = v->ob_type->tp_name; in default_3way_compare()
798 wname = w->ob_type->tp_name; in default_3way_compare()
1103 self->ob_type->tp_name); in PyObject_HashNotImplemented()
1196 Py_TYPE(name)->tp_name); in PyObject_GetAttr()
[all …]
Dtypeobject.c235 s = strrchr(type->tp_name, '.'); in type_name()
237 s = type->tp_name; in type_name()
252 "can't set %s.__name__", type->tp_name); in type_set_name()
257 "can't delete %s.__name__", type->tp_name); in type_set_name()
263 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
282 type->tp_name = PyString_AS_STRING(value); in type_set_name()
304 s = strrchr(type->tp_name, '.'); in type_module()
307 type->tp_name, (Py_ssize_t)(s - type->tp_name)); in type_module()
317 "can't set %s.__module__", type->tp_name); in type_set_module()
322 "can't delete %s.__module__", type->tp_name); in type_set_module()
[all …]
Dabstract.c17 PyErr_Format(PyExc_TypeError, msg, obj->ob_type->tp_name); in type_error()
365 Py_TYPE(obj)->tp_name); in PyObject_GetBuffer()
751 "or unicode, not %.100s", Py_TYPE(format_spec)->tp_name);
834 Py_TYPE(obj)->tp_name);
857 "unicode, not %.100s", Py_TYPE(obj)->tp_name,
858 Py_TYPE(result)->tp_name);
989 v->ob_type->tp_name,
990 w->ob_type->tp_name);
1154 v->ob_type->tp_name,
1155 w->ob_type->tp_name);
[all …]
/external/python/cpython3/Tools/gdb/
Dlibpython.py274 tp_name = ob_type.field('tp_name')
275 return tp_name.string()
306 def __init__(self, tp_name, address): argument
307 self.tp_name = tp_name
316 return '<%s at remote 0x%x>' % (self.tp_name, self.address)
351 tp_name = t.field('tp_name').string()
372 if tp_name in name_map:
373 return name_map[tp_name]
537 tp_name = self.safe_tp_name()
540 return InstanceProxy(tp_name, attr_dict, long(self._gdbval))
[all …]
/external/tensorflow/tensorflow/python/client/
Dtf_session.i256 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 …]
/external/python/cpython2/Modules/_io/
Dstringio.c236 Py_TYPE(arg)->tp_name); in stringio_read()
306 Py_TYPE(arg)->tp_name); in stringio_readline()
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()
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()
779 Py_TYPE(dict)->tp_name); in stringio_setstate()
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()
/external/python/cpython2/Tools/gdb/
Dlibpython.py245 tp_name = ob_type.field('tp_name')
246 return tp_name.string()
277 def __init__(self, tp_name, address): argument
278 self.tp_name = tp_name
287 return '<%s at remote 0x%x>' % (self.tp_name, self.address)
322 tp_name = t.field('tp_name').string()
344 if tp_name in name_map:
345 return name_map[tp_name]
509 tp_name = self.safe_tp_name()
512 return InstanceProxy(tp_name, attr_dict, long(self._gdbval))
[all …]
/external/python/cpython3/Modules/_io/
Dstringio.c415 "not '%.200s'", Py_TYPE(line)->tp_name); in stringio_iternext()
541 Py_TYPE(obj)->tp_name); in _io_StringIO_write()
664 Py_TYPE(newline_obj)->tp_name); in _io_StringIO___init___impl()
683 Py_TYPE(value)->tp_name); in _io_StringIO___init___impl()
859 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in stringio_setstate()
906 Py_TYPE(position_obj)->tp_name); in stringio_setstate()
925 Py_TYPE(dict)->tp_name); in stringio_setstate()
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc50 Py_TYPE(ctx)->tp_name) in GetContext()
218 Py_TYPE(dtype)->tp_name) in ConvertToEagerTensor()
388 Py_TYPE(other_value)->tp_name) in EagerTensor_init()
411 Py_TYPE(dtype)->tp_name) in EagerTensor_init()
882 "TFE_InitEagerTensor. Got ", Py_TYPE(base_class)->tp_name) in TFE_Py_InitEagerTensor()
894 Py_TYPE(base_class)->tp_name, in TFE_Py_InitEagerTensor()
904 Py_TYPE(base_class)->tp_name, in TFE_Py_InitEagerTensor()
983 Py_TYPE(tensors)->tp_name, "\"") in TFE_Py_TensorShapeSlice()
1010 i, " has type \"", Py_TYPE(tensor_obj)->tp_name, "\"") in TFE_Py_TensorShapeSlice()
1056 Py_TYPE(tensor)->tp_name, "\"") in TFE_Py_TensorShapeOnDevice()
/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.c168 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/Modules/
D_operator.c836 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()
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()
1551 return PyUnicode_FromFormat("%s(...)", Py_TYPE(mc)->tp_name); in methodcaller_repr()
1559 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(mc)->tp_name, mc->name); in methodcaller_repr()
1608 repr = PyUnicode_FromFormat("%s(%R, %U)", Py_TYPE(mc)->tp_name, in methodcaller_repr()
/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc100 const char* tp_name = obj->ob_type->tp_name; in IsPyDimension() local
101 if (strcmp(tp_name, "Dimension") != 0) return false; in IsPyDimension()
126 Py_TYPE(seq)->tp_name, in SampleElementFromSequence()
132 "Cannot infer dtype of a ", Py_TYPE(seq)->tp_name, in SampleElementFromSequence()
137 Py_TYPE(seq)->tp_name, in SampleElementFromSequence()
Dpy_util.cc43 return reinterpret_cast<PyTypeObject*>(py)->tp_name; in ClassName()
45 return Py_TYPE(py)->tp_name; in ClassName()
/external/bcc/src/cc/
Dlibbpf.h83 const char *tp_name);
84 int bpf_detach_tracepoint(const char *tp_category, const char *tp_name);
86 int bpf_attach_raw_tracepoint(int progfd, char *tp_name);
/external/bcc/src/cc/includes/
Dlibbpf.h83 const char *tp_name);
84 int bpf_detach_tracepoint(const char *tp_category, const char *tp_name);
86 int bpf_attach_raw_tracepoint(int progfd, char *tp_name);
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c726 ob_name = (ob) ? Py_TYPE(ob)->tp_name : "???"; in CDataType_from_param()
729 ((PyTypeObject *)type)->tp_name, ob_name); in CDataType_from_param()
741 ((PyTypeObject *)type)->tp_name, in CDataType_from_param()
742 Py_TYPE(value)->tp_name); in CDataType_from_param()
1229 Py_TYPE(value)->tp_name); in CharArray_set_value()
1285 Py_TYPE(value)->tp_name); in WCharArray_set_value()
2695 Py_TYPE(myself)->tp_name, Py_TYPE(mydict)->tp_name); in PyCData_setstate()
2916 ((PyTypeObject *)type)->tp_name); in _PyCData_set()
2929 ((PyTypeObject *)type)->tp_name, in _PyCData_set()
2930 Py_TYPE(value)->tp_name); in _PyCData_set()
[all …]
/external/tensorflow/tensorflow/python/util/
Dutil.cc48 Py_TYPE(type)->tp_name) in RegisterType()
125 StringPiece name(type->tp_name); in GetClassName()
697 PyObjectToString(o1), " has type ", type1->tp_name, in AssertSameStructureHelper()
699 type2->tp_name); in AssertSameStructureHelper()
714 PyObjectToString(o1), " has type ", type1->tp_name, in AssertSameStructureHelper()
716 type2->tp_name); in AssertSameStructureHelper()

123456789