Home
last modified time | relevance | path

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

123456

/third_party/python/Objects/
Dtypeobject.c466 name, type->tp_name); in check_set_special_type_attr()
472 name, type->tp_name); in check_set_special_type_attr()
487 assert(type->tp_name != NULL); in _PyType_Name()
488 const char *s = strrchr(type->tp_name, '.'); in _PyType_Name()
490 s = type->tp_name; in _PyType_Name()
528 const char *tp_name; in type_set_name() local
536 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name()
540 tp_name = PyUnicode_AsUTF8AndSize(value, &name_size); in type_set_name()
541 if (tp_name == NULL) in type_set_name()
543 if (strlen(tp_name) != (size_t)name_size) { in type_set_name()
[all …]
Dobject.c317 Py_TYPE(s)->tp_name); in PyObject_Print()
388 type==NULL ? "NULL" : type->tp_name); in _PyObject_Dump()
424 Py_TYPE(v)->tp_name, v); in PyObject_Repr()
449 Py_TYPE(res)->tp_name); in PyObject_Repr()
508 Py_TYPE(res)->tp_name); in PyObject_Str()
570 Py_TYPE(result)->tp_name); in PyObject_Bytes()
717 Py_TYPE(v)->tp_name, in do_richcompare()
718 Py_TYPE(w)->tp_name); in do_richcompare()
780 Py_TYPE(v)->tp_name); in PyObject_HashNotImplemented()
916 Py_TYPE(name)->tp_name); in PyObject_GetAttr()
[all …]
Dstructseq.c40 name, tp->tp_name); in get_type_attr_as_size()
168 type->tp_name); in structseq_new_impl()
178 type->tp_name, min_len, len); in structseq_new_impl()
186 type->tp_name, max_len, len); in structseq_new_impl()
195 type->tp_name, min_len, len); in structseq_new_impl()
243 PyObject *type_name = PyUnicode_DecodeUTF8(typ->tp_name, in structseq_repr()
244 strlen(typ->tp_name), in structseq_repr()
278 " for type %.500s", i, typ->tp_name); in structseq_repr()
485 type->tp_name = desc->name; in _PyStructSequence_InitType()
Ddescrobject.c43 return PyUnicode_FromFormat(format, name, "?", descr->d_type->tp_name); in descr_repr()
82 descr->d_type->tp_name, in descr_check()
83 Py_TYPE(obj)->tp_name); in descr_check()
102 PyDescr_TYPE(descr)->tp_name); in classmethod_get()
111 PyDescr_TYPE(descr)->tp_name, in classmethod_get()
112 Py_TYPE(type)->tp_name); in classmethod_get()
120 PyDescr_TYPE(descr)->tp_name, in classmethod_get()
121 ((PyTypeObject *)type)->tp_name); in classmethod_get()
147 Py_TYPE(type)->tp_name); in method_get()
189 PyDescr_TYPE(descr)->tp_name); in getset_get()
[all …]
Dabstract.c21 PyErr_Format(PyExc_TypeError, msg, Py_TYPE(obj)->tp_name); in type_error()
133 Py_TYPE(result)->tp_name); in PyObject_LengthHint()
385 Py_TYPE(obj)->tp_name); in PyObject_GetBuffer()
777 Py_TYPE(format_spec)->tp_name); in PyObject_Format()
805 Py_TYPE(obj)->tp_name); in PyObject_Format()
817 Py_TYPE(result)->tp_name); in PyObject_Format()
922 Py_TYPE(v)->tp_name, in binop_type_error()
923 Py_TYPE(w)->tp_name); in binop_type_error()
943 Py_TYPE(v)->tp_name, in binary_op()
944 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()
663 Py_TYPE(obj)->tp_name); in proxy_iternext()
820 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef()
879 Py_TYPE(ob)->tp_name); in PyWeakref_NewProxy()
Dcall.c91 slot_name, Py_TYPE(obj)->tp_name); in _Py_CheckSlotResult()
99 slot_name, Py_TYPE(obj)->tp_name); in _Py_CheckSlotResult()
185 Py_TYPE(callable)->tp_name); in _PyObject_MakeTpCall()
240 Py_TYPE(callable)->tp_name); in PyVectorcall_Call()
247 Py_TYPE(callable)->tp_name); in PyVectorcall_Call()
297 Py_TYPE(callable)->tp_name); in _PyObject_Call()
553 Py_TYPE(callable)->tp_name); in callmethod()
Dbytesobject.c457 "not %.200s", Py_TYPE(v)->tp_name); in formatfloat()
514 Py_TYPE(v)->tp_name); in formatlong()
582 Py_TYPE(result)->tp_name); in format_obj()
603 Py_TYPE(v)->tp_name); in format_obj()
1228 "expected bytes, %.200s found", Py_TYPE(op)->tp_name); in PyBytes_Size()
1239 "expected bytes, %.200s found", Py_TYPE(op)->tp_name); in PyBytes_AsString()
1257 "expected bytes, %.200s found", Py_TYPE(obj)->tp_name); in PyBytes_AsStringAndSize()
1402 Py_TYPE(b)->tp_name, Py_TYPE(a)->tp_name); in bytes_concat()
1655 Py_TYPE(item)->tp_name); in bytes_subscript()
2612 Py_TYPE(bytes)->tp_name); in bytes_new_impl()
[all …]
Dcomplexobject.c294 Py_TYPE(res)->tp_name); in try_complex_special_method()
303 Py_TYPE(res)->tp_name)) { in try_complex_special_method()
854 Py_TYPE(v)->tp_name); in complex_subtype_from_string()
932 Py_TYPE(r)->tp_name); in complex_new_impl()
946 Py_TYPE(i)->tp_name); in complex_new_impl()
Dbytearrayobject.c257 Py_TYPE(b)->tp_name, Py_TYPE(a)->tp_name); in PyByteArray_Concat()
299 Py_TYPE(other)->tp_name, Py_TYPE(self)->tp_name); in bytearray_iconcat()
438 Py_TYPE(index)->tp_name); in bytearray_subscript()
557 Py_TYPE(values)->tp_name); in bytearray_setslice()
646 Py_TYPE(index)->tp_name); in bytearray_ass_subscript()
855 Py_TYPE(arg)->tp_name); in bytearray___init___impl()
1686 Py_TYPE(iterable_of_ints)->tp_name); in bytearray_extend()
/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/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.c851 Py_TYPE(a)->tp_name, Py_TYPE(b)->tp_name); in _operator__compare_digest_impl()
1087 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ig)->tp_name); in itemgetter_repr()
1091 repr = PyUnicode_FromFormat(reprfmt, Py_TYPE(ig)->tp_name, ig->item); in itemgetter_repr()
1402 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ag)->tp_name); in attrgetter_repr()
1409 repr = PyUnicode_FromFormat("%s(%R)", Py_TYPE(ag)->tp_name, attr); in attrgetter_repr()
1418 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.c240 Py_TYPE(st->dispatch_table)->tp_name); in _Pickle_InitState()
250 "not %.200s", Py_TYPE(st->extension_registry)->tp_name); in _Pickle_InitState()
260 "not %.200s", Py_TYPE(st->inverted_registry)->tp_name); in _Pickle_InitState()
269 "not %.200s", Py_TYPE(st->extension_cache)->tp_name); in _Pickle_InitState()
285 Py_TYPE(st->name_mapping_2to3)->tp_name); in _Pickle_InitState()
295 "not %.200s", Py_TYPE(st->import_mapping_2to3)->tp_name); in _Pickle_InitState()
306 "not %.200s", Py_TYPE(st->name_mapping_3to2)->tp_name); in _Pickle_InitState()
316 "not %.200s", Py_TYPE(st->import_mapping_3to2)->tp_name); in _Pickle_InitState()
331 Py_TYPE(st->codecs_encode)->tp_name); in _Pickle_InitState()
2013 Py_TYPE(obj)->tp_name, obj); in fast_save_enter()
[all …]
/third_party/python/Modules/_ctypes/
D_ctypes.c423 .tp_name = "_ctypes.StructParam_Type",
817 ob_name = (ob) ? Py_TYPE(ob)->tp_name : "???"; in CDataType_from_param()
820 ((PyTypeObject *)type)->tp_name, ob_name); in CDataType_from_param()
834 ((PyTypeObject *)type)->tp_name, in CDataType_from_param()
835 Py_TYPE(value)->tp_name); in CDataType_from_param()
1332 Py_TYPE(value)->tp_name); in CharArray_set_value()
1383 Py_TYPE(value)->tp_name); in WCharArray_set_value()
2883 Py_TYPE(myself)->tp_name, Py_TYPE(mydict)->tp_name); in PyCData_setstate()
3108 ((PyTypeObject *)type)->tp_name); in _PyCData_set()
3121 ((PyTypeObject *)type)->tp_name, in _PyCData_set()
[all …]
Dcfield.c287 name = ((PyTypeObject *)self->proto)->tp_name; in PyCField_repr()
1147 Py_TYPE(value)->tp_name); in u_set()
1206 Py_TYPE(value)->tp_name); in U_set()
1257 Py_TYPE(value)->tp_name); in s_set()
1304 Py_TYPE(value)->tp_name); in z_set()
1343 Py_TYPE(value)->tp_name); in Z_set()
1386 Py_TYPE(value)->tp_name); in BSTR_set()
/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/Python/
Dbltinmodule.c210 isclass ? ((PyTypeObject *)meta)->tp_name : "<metaclass>", in builtin___build_class__()
211 Py_TYPE(ns)->tp_name); in builtin___build_class__()
1027 Py_TYPE(globals)->tp_name); in builtin_exec_impl()
1033 Py_TYPE(locals)->tp_name); in builtin_exec_impl()
1449 Py_TYPE(it)->tp_name); in builtin_next()
1640 t->tp_name); in builtin_anext_impl()
1910 "%.200s found", Py_TYPE(c)->tp_name); in builtin_ord()
1978 Py_TYPE(sep)->tp_name); in builtin_print()
1987 Py_TYPE(end)->tp_name); in builtin_print()
2293 Py_TYPE(number)->tp_name); in builtin_round_impl()
Dsysmodule.c505 Py_TYPE(auditEvent)->tp_name); in sys_audit()
915 "can't intern %.400s", Py_TYPE(s)->tp_name); in sys_intern_impl()
1289 Py_TYPE(finalizer)->tp_name); in sys_set_asyncgen_hooks()
1304 Py_TYPE(firstiter)->tp_name); in sys_set_asyncgen_hooks()
1713 Py_TYPE(o)->tp_name); in _PySys_GetSizeOf()
2833 if (Hash_InfoType.tp_name == NULL) { in _PySys_InitCore()
2857 if (VersionInfoType.tp_name == NULL) { in _PySys_InitCore()
2871 if (FlagsType.tp_name == 0) { in _PySys_InitCore()
2881 if (WindowsVersionType.tp_name == 0) { in _PySys_InitCore()
2900 if (AsyncGenHooksType.tp_name == NULL) { in _PySys_InitCore()
/third_party/python/Modules/_sqlite/clinic/
Drow.c.h24 …_PyArg_BadArgument("Row", "argument 1", (pysqlite_CursorType)->tp_name, PyTuple_GET_ITEM(args, 0)); in pysqlite_row_new()
/third_party/python/Python/clinic/
Dtraceback.c.h35 … _PyArg_BadArgument("TracebackType", "argument 'tb_frame'", (&PyFrame_Type)->tp_name, fastargs[1]); in tb_new()

123456