/third_party/python/Objects/ |
D | abstract.c | 21 PyErr_Format(PyExc_TypeError, msg, Py_TYPE(obj)->tp_name); in type_error() 47 v = (PyObject *)Py_TYPE(o); in PyObject_Type() 60 PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; in PyObject_Size() 80 return (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_length) || in _PyObject_HasLen() 81 (Py_TYPE(o)->tp_as_mapping && Py_TYPE(o)->tp_as_mapping->mp_length); in _PyObject_HasLen() 133 Py_TYPE(result)->tp_name); in PyObject_LengthHint() 156 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_GetItem() 163 PySequenceMethods *ms = Py_TYPE(o)->tp_as_sequence; in PyObject_GetItem() 208 PyMappingMethods *m = Py_TYPE(o)->tp_as_mapping; in PyObject_SetItem() 215 if (Py_TYPE(o)->tp_as_sequence) { in PyObject_SetItem() [all …]
|
D | object.c | 45 _PyType_CheckConsistency(Py_TYPE(op)); in _PyObject_CheckConsistency() 207 PyTypeObject *tp = Py_TYPE(self); in PyObject_CallFinalizer() 253 (!_PyType_IS_GC(Py_TYPE(self)) in PyObject_CallFinalizerFromDealloc() 317 Py_TYPE(s)->tp_name); in PyObject_Print() 349 if (_PyMem_IsPtrFreed(op) || _PyMem_IsPtrFreed(Py_TYPE(op))) { in _PyObject_IsFreed() 385 PyTypeObject *type = Py_TYPE(op); in _PyObject_Dump() 422 if (Py_TYPE(v)->tp_repr == NULL) in PyObject_Repr() 424 Py_TYPE(v)->tp_name, v); in PyObject_Repr() 440 res = (*Py_TYPE(v)->tp_repr)(v); in PyObject_Repr() 449 Py_TYPE(res)->tp_name); in PyObject_Repr() [all …]
|
D | enumobject.c | 90 Py_TYPE(en)->tp_free(en); in enum_dealloc() 163 next_item = (*Py_TYPE(it)->tp_iternext)(it); in enum_next() 207 return Py_BuildValue("O(OO)", Py_TYPE(en), en->en_sit, en->en_longindex); in enum_reduce() 209 return Py_BuildValue("O(On)", Py_TYPE(en), en->en_sit, en->en_index); in enum_reduce() 297 Py_TYPE(seq)->tp_name); in reversed_new_impl() 311 Py_TYPE(seq)->tp_name); in reversed_new_impl() 352 Py_TYPE(ro)->tp_free(ro); in reversed_dealloc() 403 return Py_BuildValue("O(O)n", Py_TYPE(ro), ro->seq, ro->index); in reversed_reduce() 405 return Py_BuildValue("O(())", Py_TYPE(ro)); in reversed_reduce()
|
D | typeobject.c | 536 type->tp_name, Py_TYPE(value)->tp_name); in type_set_name() 566 type->tp_name, Py_TYPE(value)->tp_name); in type_set_qualname() 768 type->tp_name, Py_TYPE(new_bases)->tp_name); in type_set_bases() 785 type->tp_name, Py_TYPE(ob)->tp_name); in type_set_bases() 910 else if (Py_TYPE(result)->tp_descr_get) { in type_get_doc() 911 result = Py_TYPE(result)->tp_descr_get(result, NULL, in type_get_doc() 953 if (Py_TYPE(annotations)->tp_descr_get) { in type_get_annotations() 954 annotations = Py_TYPE(annotations)->tp_descr_get(annotations, NULL, in type_get_annotations() 1100 obj = (PyObject *) Py_TYPE(PyTuple_GET_ITEM(args, 0)); in type_call() 1128 if (!PyType_IsSubtype(Py_TYPE(obj), type)) in type_call() [all …]
|
D | weakrefobject.c | 110 Py_TYPE(self)->tp_free(self); in weakref_dealloc() 181 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 188 Py_TYPE(PyWeakref_GET_OBJECT(self))->tp_name, in weakref_repr() 301 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in weakref___new__() 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() 817 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewRef() 820 Py_TYPE(ob)->tp_name); in PyWeakref_NewRef() 876 if (!PyType_SUPPORTS_WEAKREFS(Py_TYPE(ob))) { in PyWeakref_NewProxy() [all …]
|
D | structseq.c | 48 #define REAL_SIZE(op) REAL_SIZE_TP(Py_TYPE(op)) 51 #define UNNAMED_FIELDS(op) UNNAMED_FIELDS_TP(Py_TYPE(op)) 95 if (Py_TYPE(obj)->tp_flags & Py_TPFLAGS_HEAPTYPE) { in structseq_traverse() 96 Py_VISIT(Py_TYPE(obj)); in structseq_traverse() 113 tp = (PyTypeObject *) Py_TYPE(obj); in structseq_dealloc() 239 PyTypeObject *typ = Py_TYPE(obj); in structseq_repr() 347 const char *n = Py_TYPE(self)->tp_members[i-n_unnamed_fields].name; in structseq_reduce() 352 result = Py_BuildValue("(O(OO))", Py_TYPE(self), tup, dict); in structseq_reduce()
|
D | call.c | 91 slot_name, Py_TYPE(obj)->tp_name); in _Py_CheckSlotResult() 99 slot_name, Py_TYPE(obj)->tp_name); in _Py_CheckSlotResult() 181 ternaryfunc call = Py_TYPE(callable)->tp_call; in _PyObject_MakeTpCall() 185 Py_TYPE(callable)->tp_name); in _PyObject_MakeTpCall() 236 Py_ssize_t offset = Py_TYPE(callable)->tp_vectorcall_offset; in PyVectorcall_Call() 240 Py_TYPE(callable)->tp_name); in PyVectorcall_Call() 247 Py_TYPE(callable)->tp_name); in PyVectorcall_Call() 293 call = Py_TYPE(callable)->tp_call; in _PyObject_Call() 297 Py_TYPE(callable)->tp_name); in _PyObject_Call() 553 Py_TYPE(callable)->tp_name); in callmethod() [all …]
|
D | classobject.c | 180 PyTypeObject *tp = Py_TYPE(obj); in method_getattro() 192 descrgetfunc f = TP_DESCR_GET(Py_TYPE(descr)); in method_getattro() 194 return f(descr, obj, (PyObject *)Py_TYPE(obj)); in method_getattro() 427 PyTypeObject *tp = Py_TYPE(self); in instancemethod_getattro() 437 descrgetfunc f = TP_DESCR_GET(Py_TYPE(descr)); in instancemethod_getattro() 439 return f(descr, self, (PyObject *)Py_TYPE(self)); in instancemethod_getattro()
|
D | exceptions.c | 69 if (!_PyArg_NoKeywords(Py_TYPE(self)->tp_name, kwds)) in BaseException_init() 94 Py_TYPE(self)->tp_free((PyObject *)self); in BaseException_dealloc() 124 const char *name = _PyType_Name(Py_TYPE(self)); in BaseException_repr() 137 return PyTuple_Pack(3, Py_TYPE(self), self->args, self->dict); in BaseException_reduce() 139 return PyTuple_Pack(2, Py_TYPE(self), self->args); in BaseException_reduce() 540 Py_TYPE(self)->tp_free((PyObject *)self); in StopIteration_dealloc() 607 Py_TYPE(self)->tp_free((PyObject *)self); in SystemExit_dealloc() 689 Py_TYPE(self)->tp_free((PyObject *)self); in ImportError_dealloc() 753 res = PyTuple_Pack(2, Py_TYPE(self), args); in ImportError_reduce() 755 res = PyTuple_Pack(3, Py_TYPE(self), args, state); in ImportError_reduce() [all …]
|
/third_party/python/Modules/ |
D | itertoolsmodule.c | 101 Py_TYPE(po)->tp_free(po); in pairwise_dealloc() 123 po->old = old = (*Py_TYPE(it)->tp_iternext)(it); in pairwise_next() 129 new = (*Py_TYPE(it)->tp_iternext)(it); in pairwise_next() 245 Py_TYPE(gbo)->tp_free(gbo); in groupby_dealloc() 331 value = Py_BuildValue("O(OO)(OOO)", Py_TYPE(lz), in groupby_reduce() 334 value = Py_BuildValue("O(OO)", Py_TYPE(lz), in groupby_reduce() 511 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->parent, lz->tgtkey); in _grouper_reduce() 709 return Py_BuildValue("O(ONO)", Py_TYPE(tdo), tdo->it, in teedataobject_reduce() 930 return Py_BuildValue("O(())(Oi)", Py_TYPE(to), to->dataobj, to->index); in tee_reduce() 1132 Py_TYPE(lz)->tp_free(lz); in cycle_dealloc() [all …]
|
D | _operator.c | 851 Py_TYPE(a)->tp_name, Py_TYPE(b)->tp_name); in _operator__compare_digest_impl() 1017 PyTypeObject *tp = Py_TYPE(ig); in itemgetter_dealloc() 1027 Py_VISIT(Py_TYPE(ig)); in itemgetter_traverse() 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() 1100 return Py_BuildValue("O(O)", Py_TYPE(ig), ig->item); in itemgetter_reduce() 1101 return PyTuple_Pack(2, Py_TYPE(ig), ig->item); in itemgetter_reduce() 1273 PyTypeObject *tp = Py_TYPE(ag); in attrgetter_dealloc() 1284 Py_VISIT(Py_TYPE(ag)); in attrgetter_traverse() 1402 return PyUnicode_FromFormat("%s(...)", Py_TYPE(ag)->tp_name); in attrgetter_repr() [all …]
|
D | _dbmmodule.c | 89 Py_VISIT(Py_TYPE(dp)); in dbm_traverse() 100 PyTypeObject *tp = Py_TYPE(dp); in dbm_dealloc() 108 _dbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in dbm_length() 132 _dbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in dbm_subscript() 164 _dbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in dbm_ass_sub() 271 _dbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in dbm_contains() 287 Py_TYPE(arg)->tp_name); in dbm_contains()
|
D | _threadmodule.c | 57 Py_VISIT(Py_TYPE(self)); in lock_traverse() 73 PyTypeObject *tp = Py_TYPE(self); in lock_dealloc() 242 self->locked ? "locked" : "unlocked", Py_TYPE(self)->tp_name, self); in lock_repr() 333 Py_VISIT(Py_TYPE(self)); in rlock_traverse() 352 PyTypeObject *tp = Py_TYPE(self); in rlock_dealloc() 533 Py_TYPE(self)->tp_name, self->rlock_owner, in rlock_repr() 677 PyTypeObject *tp = Py_TYPE(self); in localdummy_dealloc() 838 Py_VISIT(Py_TYPE(self)); in local_traverse() 886 PyTypeObject *tp = Py_TYPE(self); in local_dealloc() 912 if (Py_TYPE(self)->tp_init != PyBaseObject_Type.tp_init && in _ldict() [all …]
|
D | _gdbmmodule.c | 102 Py_VISIT(Py_TYPE(dp)); in gdbm_traverse() 113 PyTypeObject *tp = Py_TYPE(dp); in gdbm_dealloc() 121 _gdbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in gdbm_length() 190 _gdbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in gdbm_subscript() 240 _gdbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in gdbm_ass_sub() 381 _gdbm_state *state = PyType_GetModuleState(Py_TYPE(dp)); in gdbm_contains() 397 Py_TYPE(arg)->tp_name); in gdbm_contains()
|
D | _collectionsmodule.c | 374 iternext = *Py_TYPE(it)->tp_iternext; in consume_iterator() 414 iternext = *Py_TYPE(it)->tp_iternext; in deque_extend() 461 iternext = *Py_TYPE(it)->tp_iternext; in deque_extendleft() 516 result = PyObject_CallOneArg((PyObject *)(Py_TYPE(deque)), deque); in deque_copy() 518 result = PyObject_CallFunction((PyObject *)(Py_TYPE(deque)), "Oi", in deque_copy() 523 Py_TYPE(deque)->tp_name, Py_TYPE(result)->tp_name); in deque_copy() 543 Py_TYPE(other)->tp_name); in deque_concat() 1319 Py_TYPE(deque)->tp_free(deque); in deque_dealloc() 1367 return Py_BuildValue("O()NN", Py_TYPE(deque), dict, it); in deque_reduce() 1370 return Py_BuildValue("O(()n)NN", Py_TYPE(deque), deque->maxlen, dict, it); in deque_reduce() [all …]
|
D | _functoolsmodule.c | 74 if (Py_TYPE(func)->tp_call == (ternaryfunc)partial_call) { in partial_new() 163 Py_VISIT(Py_TYPE(pto)); in partial_traverse() 174 PyTypeObject *tp = Py_TYPE(pto); in partial_dealloc() 394 result = PyUnicode_FromFormat("%s(%R%U)", Py_TYPE(pto)->tp_name, in partial_repr() 413 return Py_BuildValue("O(O)(OOOO)", Py_TYPE(pto), pto->fn, pto->fn, in partial_reduce() 519 PyTypeObject *tp = Py_TYPE(ko); in keyobject_dealloc() 529 Py_VISIT(Py_TYPE(ko)); in keyobject_traverse() 577 result = PyObject_GC_New(keyobject, Py_TYPE(ko)); in keyobject_call() 599 if (!Py_IS_TYPE(other, Py_TYPE(ko))) { in keyobject_richcompare() 770 PyTypeObject *tp = Py_TYPE(link); in lru_list_elem_dealloc() [all …]
|
D | arraymodule.c | 623 array_state *state = find_array_state_by_type(Py_TYPE(op)); in getarrayitem() 667 Py_VISIT(Py_TYPE(op)); in array_tp_traverse() 674 PyTypeObject *tp = Py_TYPE(op); in array_dealloc() 688 array_state *state = find_array_state_by_type(Py_TYPE(v)); in array_richcompare() 817 array_state *state = find_array_state_by_type(Py_TYPE(a)); in array_slice() 873 array_state *state = find_array_state_by_type(Py_TYPE(a)); in array_concat() 879 Py_TYPE(bb)->tp_name); in array_concat() 909 array_state *state = find_array_state_by_type(Py_TYPE(a)); in array_repeat() 993 array_state *state = find_array_state_by_type(Py_TYPE(a)); in setarrayitem() 1058 array_state *state = find_array_state_by_type(Py_TYPE(self)); in array_inplace_concat() [all …]
|
/third_party/python/Include/ |
D | setobject.h | 93 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type)) 99 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type) || \ 100 PyType_IsSubtype(Py_TYPE(ob), &PyFrozenSet_Type)) 105 PyType_IsSubtype(Py_TYPE(ob), &PySet_Type))
|
/third_party/python/Include/internal/ |
D | pycore_object.h | 157 Py_ssize_t offset = Py_TYPE(op)->tp_weaklistoffset; in _PyObject_GET_WEAKREFS_LISTPTR() 165 return (PyType_IS_GC(Py_TYPE(obj)) in _PyObject_IS_GC() 166 && (Py_TYPE(obj)->tp_is_gc == NULL in _PyObject_IS_GC() 167 || Py_TYPE(obj)->tp_is_gc(obj))); in _PyObject_IS_GC()
|
/third_party/python/Python/ |
D | bltinmodule.c | 171 meta = (PyObject *)Py_TYPE(base0); in builtin___build_class__() 211 Py_TYPE(ns)->tp_name); in builtin___build_class__() 332 iternext = *Py_TYPE(it)->tp_iternext; in builtin_all() 381 iternext = *Py_TYPE(it)->tp_iternext; in builtin_any() 572 Py_TYPE(lz)->tp_free(lz); in filter_dealloc() 592 iternext = *Py_TYPE(it)->tp_iternext; in filter_next() 621 return Py_BuildValue("O(OO)", Py_TYPE(lz), lz->func, lz->it); in filter_reduce() 1027 Py_TYPE(globals)->tp_name); in builtin_exec_impl() 1033 Py_TYPE(locals)->tp_name); in builtin_exec_impl() 1305 Py_TYPE(lz)->tp_free(lz); in map_dealloc() [all …]
|
/third_party/python/Modules/_ssl/ |
D | cert.c | 172 Py_TYPE(self)->tp_name, osubject in certificate_repr() 199 if (Py_TYPE(other) != state->PySSLCertificate_Type) { in certificate_richcompare() 217 PyTypeObject *tp = Py_TYPE(self); in certificate_dealloc() 219 Py_TYPE(self)->tp_free(self); in certificate_dealloc()
|
/third_party/python/Modules/_io/ |
D | stringio.c | 416 "not '%.200s'", Py_TYPE(line)->tp_name); in stringio_iternext() 542 Py_TYPE(obj)->tp_name); in _io_StringIO_write() 612 Py_TYPE(self)->tp_free(self); in stringio_dealloc() 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()
|
D | bytesio.c | 520 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() 899 Py_TYPE(self)->tp_free(self); in bytesio_dealloc() 968 res = _PyObject_SIZE(Py_TYPE(self)); in bytesio_sizeof() 1119 Py_TYPE(self)->tp_free(self); in bytesiobuf_dealloc()
|
/third_party/python/Modules/_sqlite/ |
D | prepare_protocol.c | 36 Py_VISIT(Py_TYPE(self)); in pysqlite_prepare_protocol_traverse() 43 PyTypeObject *tp = Py_TYPE(self); in pysqlite_prepare_protocol_dealloc()
|
D | cache.c | 50 Py_VISIT(Py_TYPE(self)); in node_traverse() 67 PyTypeObject *tp = Py_TYPE(self); in pysqlite_node_dealloc() 109 Py_VISIT(Py_TYPE(self)); in cache_traverse() 151 PyTypeObject *tp = Py_TYPE(self); in pysqlite_cache_dealloc()
|