/third_party/python/Objects/ |
H A D | typeobject.c | 138 CHECK(type->tp_dict != NULL); in _PyType_CheckConsistency() 148 CHECK(PyDict_Contains(type->tp_dict, &_Py_ID(__new__)) == 0); in _PyType_CheckConsistency() 547 mod = PyDict_GetItemWithError(type->tp_dict, &_Py_ID(__module__)); in type_module() 580 return PyDict_SetItem(type->tp_dict, &_Py_ID(__module__), value); in type_set_module() 590 mod = PyDict_GetItemWithError(type->tp_dict, in type_abstractmethods() 614 res = PyDict_SetItem(type->tp_dict, &_Py_ID(__abstractmethods__), value); in type_set_abstractmethods() 618 res = PyDict_DelItem(type->tp_dict, &_Py_ID(__abstractmethods__)); in type_set_abstractmethods() 861 if (type->tp_dict == NULL) { in type_dict() 864 return PyDictProxy_New(type->tp_dict); in type_dict() 874 result = PyDict_GetItemWithError(type->tp_dict, in type_get_doc() [all...] |
H A D | structseq.c | 29 PyObject *v = PyDict_GetItemWithError(tp->tp_dict, name); in get_type_attr_as_size() 508 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in _PyStructSequence_InitType() 606 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in _PyStructSequence_NewType()
|
H A D | classobject.c | 186 if (tp->tp_dict == NULL) { in method_getattro() 404 if (tp->tp_dict == NULL) { in instancemethod_getattro()
|
H A D | object.c | 781 if (tp->tp_dict == NULL) { in PyObject_Hash() 1266 if (tp->tp_dict == NULL) { in _PyObject_GenericGetAttrWithDict() 1387 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GenericSetAttrWithDict() 1718 0, /*tp_dict */ 1819 0, /*tp_dict */
|
/third_party/python/Modules/_ctypes/ |
H A D | stgdict.c | 171 0, /* tp_dict */ 190 if (!type->tp_dict || !PyCStgDict_CheckExact(type->tp_dict)) in PyType_stgdict() 192 return (StgDictObject *)type->tp_dict; in PyType_stgdict() 204 if (!type->tp_dict || !PyCStgDict_CheckExact(type->tp_dict)) in PyObject_stgdict() 206 return (StgDictObject *)type->tp_dict; in PyObject_stgdict()
|
H A D | _ctypes.c | 211 0, /* tp_dict */ 445 tp_dict member with a new instance of StgDict, and initializes the C 514 int r = _PyDict_ContainsId(result->tp_dict, &PyId__abstract_); in StructUnionType_new() 532 if (-1 == PyDict_Update((PyObject *)dict, result->tp_dict)) { in StructUnionType_new() 537 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new() 963 0, /* tp_dict */ 1005 0, /* tp_dict */ 1137 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCPointerType_new() 1142 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new() 1263 0, /* tp_dict */ [all...] |
/third_party/python/Modules/_blake2/ |
H A D | blake2module.c | 92 PyObject *d = st->blake2b_type->tp_dict; in blake2_exec() 114 d = st->blake2s_type->tp_dict; in blake2_exec()
|
/third_party/python/Doc/includes/ |
H A D | typestruct.h | 62 PyObject *tp_dict; member
|
/third_party/python/Modules/_multiprocessing/ |
H A D | multiprocessing.c | 211 if (PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in multiprocessing_exec()
|
/third_party/python/Lib/ |
H A D | typing.py | 2948 tp_dict = type.__new__(_TypedDictMeta, name, (*generic_base, dict), ns) 2954 n: _type_check(tp, msg, module=tp_dict.__module__) 2983 tp_dict.__annotations__ = annotations 2984 tp_dict.__required_keys__ = frozenset(required_keys) 2985 tp_dict.__optional_keys__ = frozenset(optional_keys) 2986 if not hasattr(tp_dict, '__total__'): 2987 tp_dict.__total__ = total 2988 return tp_dict
|
/third_party/python/Include/internal/ |
H A D | pycore_object.h | 238 #define _PyType_IsReady(type) ((type)->tp_dict != NULL)
|
/third_party/python/Modules/ |
H A D | _abc.c | 455 PyObject *flags = PyDict_GetItemWithError(cls->tp_dict, in _abc__abc_init() 474 if (PyDict_DelItem(cls->tp_dict, &_Py_ID(__abc_tpflags__)) < 0) { in _abc__abc_init()
|
H A D | _datetimemodule.c | 2840 0, /* tp_dict */ 3670 0, /* tp_dict */ 3897 0, /* tp_dict */ 4133 0, /* tp_dict */ 4807 0, /* tp_dict */ 6662 0, /* tp_dict */ 6762 PyObject *d = PyDateTime_DeltaType.tp_dict; in _datetime_exec() 6769 d = PyDateTime_DateType.tp_dict; in _datetime_exec() 6775 d = PyDateTime_TimeType.tp_dict; in _datetime_exec() 6781 d = PyDateTime_DateTimeType.tp_dict; in _datetime_exec() [all...] |
H A D | mathmodule.c | 2166 if (Py_TYPE(x)->tp_dict == NULL) { in math_trunc()
|
H A D | pyexpat.c | 1613 if (PyDict_SetDefault(state->xml_parse_type->tp_dict, PyDescr_NAME(descr), descr) == NULL) { in init_handler_descrs()
|
H A D | _testcapimodule.c | 381 0, /* tp_dict */ 412 if (type->tp_dict != NULL) in test_lazy_hash_inheritance() 427 if (type->tp_dict != NULL) { in test_lazy_hash_inheritance() 445 if (type->tp_dict == NULL) { in test_lazy_hash_inheritance() 7126 0, /* tp_dict */ 7207 0, /* tp_dict */
|
/third_party/python/Include/cpython/ |
H A D | object.h | 209 PyObject *tp_dict; member
|
/third_party/python/Python/ |
H A D | context.c | 1336 PyContextToken_Type.tp_dict, "MISSING", missing)) in _PyContext_Init()
|
H A D | specialize.c | 669 if (type->tp_dict == NULL) { in _Py_Specialize_LoadAttr() 937 if (owner_cls->tp_dict == NULL) { in _Py_Specialize_LoadMethod()
|
H A D | bltinmodule.c | 662 0, /* tp_dict */ 1448 0, /* tp_dict */ 2320 if (Py_TYPE(number)->tp_dict == NULL) { in builtin_round_impl() 2941 0, /* tp_dict */
|
/third_party/protobuf/python/google/protobuf/pyext/ |
H A D | descriptor.cc | 1486 0, // tp_dict 1892 if (PyDict_SetItemString(type->tp_dict, value->name().c_str(), obj.get()) < in AddEnumValues() 1902 if (PyDict_SetItemString(type->tp_dict, name, obj.get()) < 0) { in AddIntConstant()
|
H A D | message.cc | 530 0, // tp_dict 2804 0, // tp_dict 2943 PyDict_SetItem(CMessage_Type->tp_dict, kDESCRIPTOR, Py_None); in InitProto2MessageModule() 2946 // after we have modified CMessage_Type.tp_dict. in InitProto2MessageModule()
|
/third_party/python/Modules/_decimal/ |
H A D | _decimal.c | 714 0, /* tp_dict */ 5030 0, /* tp_dict */ 5715 0, /* tp_dict */ 5870 CHECK_INT(PyDict_SetItemString(PyDec_Type.tp_dict, "__module__", obj)); in PyInit__decimal() 5871 CHECK_INT(PyDict_SetItemString(PyDecContext_Type.tp_dict, in PyInit__decimal() 5896 CHECK_INT(PyDict_SetItemString(DecimalTuple->tp_dict, "__module__", obj)); in PyInit__decimal()
|
/third_party/skia/third_party/externals/libwebp/swig/ |
H A D | libwebp_python_wrap.c | 1971 0, /* tp_dict */ in SwigPyObject_TypeOnce() 2158 0, /* tp_dict */ in SwigPyPacked_TypeOnce() 2961 if (!tp->tp_dict) { in SWIG_Python_NonDynamicSetAttr()
|