Home
last modified time | relevance | path

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

123456

/third_party/python/Objects/
Dobject.c297 Py_TYPE(s)->tp_name); in PyObject_Print()
368 type==NULL ? "NULL" : type->tp_name); in _PyObject_Dump()
404 Py_TYPE(v)->tp_name, v); in PyObject_Repr()
429 Py_TYPE(res)->tp_name); in PyObject_Repr()
488 Py_TYPE(res)->tp_name); in PyObject_Str()
550 Py_TYPE(result)->tp_name); in PyObject_Bytes()
697 Py_TYPE(v)->tp_name, in do_richcompare()
698 Py_TYPE(w)->tp_name); in do_richcompare()
760 Py_TYPE(v)->tp_name); in PyObject_HashNotImplemented()
886 Py_TYPE(name)->tp_name); in PyObject_GetAttr()
[all …]
Dtypeobject.c429 "can't set %s.%s", type->tp_name, name); in check_set_special_type_attr()
434 "can't delete %s.%s", type->tp_name, name); in check_set_special_type_attr()
449 assert(type->tp_name != NULL); in _PyType_Name()
450 const char *s = strrchr(type->tp_name, '.'); in _PyType_Name()
452 s = type->tp_name; in _PyType_Name()
490 const char *tp_name; in type_set_name() local
498 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
502 tp_name = PyUnicode_AsUTF8AndSize(value, &name_size); in type_set_name()
503 if (tp_name == NULL) in type_set_name()
505 if (strlen(tp_name) != (size_t)name_size) { in type_set_name()
[all …]
Dstructseq.c133 type->tp_name); in structseq_new_impl()
147 type->tp_name, min_len, len); in structseq_new_impl()
155 type->tp_name, max_len, len); in structseq_new_impl()
164 type->tp_name, min_len, len); in structseq_new_impl()
204 PyObject *type_name = PyUnicode_DecodeUTF8(typ->tp_name, in structseq_repr()
205 strlen(typ->tp_name), in structseq_repr()
239 " for type %.500s", i, typ->tp_name); in structseq_repr()
405 type->tp_name = desc->name; in PyStructSequence_InitType2()
Ddescrobject.c43 return PyUnicode_FromFormat(format, name, "?", descr->d_type->tp_name); in descr_repr()
87 descr->d_type->tp_name, in descr_check()
88 Py_TYPE(obj)->tp_name); in descr_check()
108 PyDescr_TYPE(descr)->tp_name); in classmethod_get()
117 PyDescr_TYPE(descr)->tp_name, in classmethod_get()
118 Py_TYPE(type)->tp_name); in classmethod_get()
126 PyDescr_TYPE(descr)->tp_name, in classmethod_get()
127 ((PyTypeObject *)type)->tp_name); in classmethod_get()
151 Py_TYPE(type)->tp_name); in method_get()
189 PyDescr_TYPE(descr)->tp_name); in getset_get()
[all …]
Dabstract.c19 PyErr_Format(PyExc_TypeError, msg, Py_TYPE(obj)->tp_name); in type_error()
129 Py_TYPE(result)->tp_name); in PyObject_LengthHint()
380 Py_TYPE(obj)->tp_name); in PyObject_GetBuffer()
769 Py_TYPE(format_spec)->tp_name); in PyObject_Format()
796 Py_TYPE(obj)->tp_name); in PyObject_Format()
807 Py_TYPE(result)->tp_name); in PyObject_Format()
890 Py_TYPE(v)->tp_name, in binop_type_error()
891 Py_TYPE(w)->tp_name); in binop_type_error()
911 Py_TYPE(v)->tp_name, in binary_op()
912 Py_TYPE(w)->tp_name); in binary_op()
[all …]
Dpicklebufobject.c43 Py_TYPE(obj)->tp_name); in PyPickleBuffer_GetBuffer()
62 Py_TYPE(obj)->tp_name); in PyPickleBuffer_Release()
208 .tp_name = "pickle.PickleBuffer",
Dweakrefobject.c181 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr()
188 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr()
304 Py_TYPE(ob)->tp_name); in weakref___new__()
506 Py_TYPE(PyWeakref_GET_OBJECT(proxy))->tp_name, in WRAP_BINARY()
828 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef()
887 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy()
Dbytesobject.c417 "not %.200s", Py_TYPE(v)->tp_name); in formatfloat()
477 Py_TYPE(v)->tp_name); in formatlong()
555 Py_TYPE(result)->tp_name); in format_obj()
576 Py_TYPE(v)->tp_name); in format_obj()
1201 "expected bytes, %.200s found", Py_TYPE(op)->tp_name); in PyBytes_Size()
1212 "expected bytes, %.200s found", Py_TYPE(op)->tp_name); in PyBytes_AsString()
1230 "expected bytes, %.200s found", Py_TYPE(obj)->tp_name); in PyBytes_AsStringAndSize()
1371 Py_TYPE(b)->tp_name, Py_TYPE(a)->tp_name); in bytes_concat()
1640 Py_TYPE(item)->tp_name); in bytes_subscript()
2602 Py_TYPE(new)->tp_name); in bytes_new()
[all …]
Dcomplexobject.c299 Py_TYPE(res)->tp_name); in try_complex_special_method()
308 Py_TYPE(res)->tp_name)) { in try_complex_special_method()
894 Py_TYPE(v)->tp_name); in complex_subtype_from_string()
966 Py_TYPE(r)->tp_name); in complex_new_impl()
978 Py_TYPE(i)->tp_name); in complex_new_impl()
Dcall.c161 Py_TYPE(callable)->tp_name); in _PyObject_MakeTpCall()
216 Py_TYPE(callable)->tp_name); in PyVectorcall_Call()
223 Py_TYPE(callable)->tp_name); in PyVectorcall_Call()
273 Py_TYPE(callable)->tp_name); in _PyObject_Call()
611 Py_TYPE(callable)->tp_name); in callmethod()
/third_party/python/Tools/gdb/
Dlibpython.py276 tp_name = ob_type.field('tp_name')
277 return tp_name.string()
308 def __init__(self, tp_name, address): argument
309 self.tp_name = tp_name
318 return '<%s at remote 0x%x>' % (self.tp_name, self.address)
353 tp_name = t.field('tp_name').string()
374 if tp_name in name_map:
375 return name_map[tp_name]
539 tp_name = self.safe_tp_name()
542 return InstanceProxy(tp_name, attr_dict, long(self._gdbval))
[all …]
/third_party/boost/libs/python/src/converter/
Dfrom_python.cpp104 , source->ob_type->tp_name in rvalue_from_python_stage2()
211 , source->ob_type->tp_name in throw_no_lvalue_from_python()
295 , type_->tp_name in pytype_check()
296 , source->ob_type->tp_name in pytype_check()
/third_party/boost/libs/python/src/object/
Denum.cpp53 … PyUnicode_FromFormat("%S.%s(%ld)", mod, self_->ob_type->tp_name, PyLong_AsLong(self_)); in enum_repr()
55 …PyString_FromFormat("%s.%s(%ld)", PyString_AsString(mod), self_->ob_type->tp_name, PyInt_AS_LONG(s… in enum_repr()
66 PyUnicode_FromFormat("%S.%s.%S", mod, self_->ob_type->tp_name, name); in enum_repr()
69 PyString_AsString(mod), self_->ob_type->tp_name, PyString_AsString(name)); in enum_repr()
/third_party/boost/boost/python/
Dopaque_pointer_converter.hpp45 if (type_object.tp_name == 0) in opaque()
47 type_object.tp_name = const_cast<char*>(type_id<Pointee*>().name()); in opaque()
/third_party/python/Modules/_io/
Dstringio.c416 "not '%.200s'", Py_TYPE(line)->tp_name); in stringio_iternext()
542 Py_TYPE(obj)->tp_name); in _io_StringIO_write()
665 Py_TYPE(newline_obj)->tp_name); in _io_StringIO___init___impl()
684 Py_TYPE(value)->tp_name); in _io_StringIO___init___impl()
860 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in stringio_setstate()
907 Py_TYPE(position_obj)->tp_name); in stringio_setstate()
926 Py_TYPE(dict)->tp_name); in stringio_setstate()
Dbytesio.c520 Py_TYPE(arg)->tp_name); in _io_BytesIO_readlines_impl()
826 Py_TYPE(self)->tp_name, Py_TYPE(state)->tp_name); in bytesio_setstate()
849 Py_TYPE(position_obj)->tp_name); in bytesio_setstate()
868 Py_TYPE(dict)->tp_name); in bytesio_setstate()
/third_party/python/Modules/
D_operator.c838 Py_TYPE(a)->tp_name, Py_TYPE(b)->tp_name); in _operator__compare_digest_impl()
1064 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ig)->tp_name); in itemgetter_repr()
1068 repr = PyUnicode_FromFormat(reprfmt, Py_TYPE(ig)->tp_name, ig->item); in itemgetter_repr()
1392 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ag)->tp_name); in attrgetter_repr()
1399 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(ag)->tp_name, attr); in attrgetter_repr()
1408 Py_TYPE(ag)->tp_name, attrstrings); in attrgetter_repr()
1584 return PyUnicode_FromFormat("%s(...)", Py_TYPE(mc)->tp_name); in methodcaller_repr()
1592 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(mc)->tp_name, mc->name); in methodcaller_repr()
1641 repr = PyUnicode_FromFormat("%s(%R, %U)", Py_TYPE(mc)->tp_name, in methodcaller_repr()
D_pickle.c239 Py_TYPE(st->dispatch_table)->tp_name); in _Pickle_InitState()
249 "not %.200s", Py_TYPE(st->extension_registry)->tp_name); in _Pickle_InitState()
259 "not %.200s", Py_TYPE(st->inverted_registry)->tp_name); in _Pickle_InitState()
268 "not %.200s", Py_TYPE(st->extension_cache)->tp_name); in _Pickle_InitState()
284 Py_TYPE(st->name_mapping_2to3)->tp_name); in _Pickle_InitState()
294 "not %.200s", Py_TYPE(st->import_mapping_2to3)->tp_name); in _Pickle_InitState()
305 "not %.200s", Py_TYPE(st->name_mapping_3to2)->tp_name); in _Pickle_InitState()
315 "not %.200s", Py_TYPE(st->import_mapping_3to2)->tp_name); in _Pickle_InitState()
330 Py_TYPE(st->codecs_encode)->tp_name); in _Pickle_InitState()
2012 Py_TYPE(obj)->tp_name, obj); in fast_save_enter()
[all …]
/third_party/python/Modules/_ctypes/
D_ctypes.c417 .tp_name = "_ctypes.StructParam_Type",
810 ob_name = (ob) ? Py_TYPE(ob)->tp_name : "???"; in CDataType_from_param()
813 ((PyTypeObject *)type)->tp_name, ob_name); in CDataType_from_param()
827 ((PyTypeObject *)type)->tp_name, in CDataType_from_param()
828 Py_TYPE(value)->tp_name); in CDataType_from_param()
1325 Py_TYPE(value)->tp_name); in CharArray_set_value()
1379 Py_TYPE(value)->tp_name); in WCharArray_set_value()
2886 Py_TYPE(myself)->tp_name, Py_TYPE(mydict)->tp_name); in PyCData_setstate()
3111 ((PyTypeObject *)type)->tp_name); in _PyCData_set()
3124 ((PyTypeObject *)type)->tp_name, in _PyCData_set()
[all …]
/third_party/python/Doc/includes/
Dcustom.c11 .tp_name = "custom.Custom",
Dsublist.c33 .tp_name = "sublist.SubList",
Dtypestruct.h3 const char *tp_name; /* For printing, in format "<module>.<name>" */ member
/third_party/python/Modules/clinic/
D_curses_panel.c.h217 _PyArg_BadArgument("replace", "argument", (&PyCursesWindow_Type)->tp_name, arg); in _curses_panel_panel_replace()
291 _PyArg_BadArgument("new_panel", "argument", (&PyCursesWindow_Type)->tp_name, arg); in _curses_panel_new_panel()
/third_party/python/Python/clinic/
Dtraceback.c.h35 … _PyArg_BadArgument("TracebackType", "argument 'tb_frame'", (&PyFrame_Type)->tp_name, fastargs[1]); in tb_new()
/third_party/python/Objects/clinic/
Dfuncobject.c.h47 _PyArg_BadArgument("function", "argument 'code'", (&PyCode_Type)->tp_name, fastargs[0]); in func_new()

123456