Home
last modified time | relevance | path

Searched refs:tp_dict (Results 1 - 24 of 24) sorted by relevance

/third_party/python/Objects/
H A Dtypeobject.c138 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 Dstructseq.c29 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 Dclassobject.c186 if (tp->tp_dict == NULL) { in method_getattro()
404 if (tp->tp_dict == NULL) { in instancemethod_getattro()
H A Dobject.c781 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 Dstgdict.c171 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.c211 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 Dblake2module.c92 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 Dtypestruct.h62 PyObject *tp_dict; member
/third_party/python/Modules/_multiprocessing/
H A Dmultiprocessing.c211 if (PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in multiprocessing_exec()
/third_party/python/Lib/
H A Dtyping.py2948 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 Dpycore_object.h238 #define _PyType_IsReady(type) ((type)->tp_dict != NULL)
/third_party/python/Modules/
H A D_abc.c455 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.c2840 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 Dmathmodule.c2166 if (Py_TYPE(x)->tp_dict == NULL) { in math_trunc()
H A Dpyexpat.c1613 if (PyDict_SetDefault(state->xml_parse_type->tp_dict, PyDescr_NAME(descr), descr) == NULL) { in init_handler_descrs()
H A D_testcapimodule.c381 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 Dobject.h209 PyObject *tp_dict; member
/third_party/python/Python/
H A Dcontext.c1336 PyContextToken_Type.tp_dict, "MISSING", missing)) in _PyContext_Init()
H A Dspecialize.c669 if (type->tp_dict == NULL) { in _Py_Specialize_LoadAttr()
937 if (owner_cls->tp_dict == NULL) { in _Py_Specialize_LoadMethod()
H A Dbltinmodule.c662 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 Ddescriptor.cc1486 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 Dmessage.cc530 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.c714 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 Dlibwebp_python_wrap.c1971 0, /* tp_dict */ in SwigPyObject_TypeOnce()
2158 0, /* tp_dict */ in SwigPyPacked_TypeOnce()
2961 if (!tp->tp_dict) { in SWIG_Python_NonDynamicSetAttr()

Completed in 78 milliseconds