Home
last modified time | relevance | path

Searched refs:tp_dict (Results 1 – 25 of 29) sorted by relevance

12

/third_party/python/Objects/
Dtypeobject.c164 CHECK(type->tp_dict != NULL); in _PyType_CheckConsistency()
168 CHECK(_PyDict_ContainsId(type->tp_dict, &PyId___new__) == 0); in _PyType_CheckConsistency()
582 mod = _PyDict_GetItemIdWithError(type->tp_dict, &PyId___module__); in type_module()
615 return _PyDict_SetItemId(type->tp_dict, &PyId___module__, value); in type_set_module()
625 mod = _PyDict_GetItemIdWithError(type->tp_dict, &PyId___abstractmethods__); in type_abstractmethods()
650 res = _PyDict_SetItemId(type->tp_dict, &PyId___abstractmethods__, value); in type_set_abstractmethods()
654 res = _PyDict_DelItemId(type->tp_dict, &PyId___abstractmethods__); in type_set_abstractmethods()
890 if (type->tp_dict == NULL) { in type_dict()
893 return PyDictProxy_New(type->tp_dict); in type_dict()
903 result = _PyDict_GetItemIdWithError(type->tp_dict, &PyId___doc__); in type_get_doc()
[all …]
Dstructseq.c36 PyObject *v = PyDict_GetItemWithError(tp->tp_dict, name); in get_type_attr_as_size()
513 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in _PyStructSequence_InitType()
578 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in PyStructSequence_NewType()
Dclassobject.c184 if (tp->tp_dict == NULL) { in method_getattro()
430 if (tp->tp_dict == NULL) { in instancemethod_getattro()
Dobject.c795 if (tp->tp_dict == NULL) { in PyObject_Hash()
1142 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GetMethod()
1231 if (tp->tp_dict == NULL) { in _PyObject_GenericGetAttrWithDict()
1342 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GenericSetAttrWithDict()
/third_party/python/Modules/_ctypes/
Dstgdict.c180 if (!type->tp_dict || !PyCStgDict_CheckExact(type->tp_dict)) in PyType_stgdict()
182 return (StgDictObject *)type->tp_dict; in PyType_stgdict()
194 if (!type->tp_dict || !PyCStgDict_CheckExact(type->tp_dict)) in PyObject_stgdict()
196 return (StgDictObject *)type->tp_dict; in PyObject_stgdict()
D_ctypes.c501 int r = _PyDict_ContainsId(result->tp_dict, &PyId__abstract_); in StructUnionType_new()
519 if (-1 == PyDict_Update((PyObject *)dict, result->tp_dict)) { in StructUnionType_new()
524 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new()
1124 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCPointerType_new()
1129 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new()
1459 PyObject *dict = type->tp_dict; in add_getset()
1605 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) in PyCArrayType_new()
1607 Py_SETREF(result->tp_dict, (PyObject *)stgdict); /* steal the reference */ in PyCArrayType_new()
2027 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in CreateSwappedType()
2032 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType()
[all …]
/third_party/python/Modules/_blake2/
Dblake2module.c89 PyObject *d = st->blake2b_type->tp_dict; in blake2_exec()
111 d = st->blake2s_type->tp_dict; in blake2_exec()
/third_party/python/Doc/includes/
Dtypestruct.h62 PyObject *tp_dict; member
/third_party/python/Lib/
Dtyping.py2328 tp_dict = type.__new__(_TypedDictMeta, name, (dict,), ns)
2335 n: _type_check(tp, msg, module=tp_dict.__module__)
2352 tp_dict.__annotations__ = annotations
2353 tp_dict.__required_keys__ = frozenset(required_keys)
2354 tp_dict.__optional_keys__ = frozenset(optional_keys)
2355 if not hasattr(tp_dict, '__total__'):
2356 tp_dict.__total__ = total
2357 return tp_dict
/third_party/python/Include/internal/
Dpycore_object.h181 #define _PyType_IsReady(type) ((type)->tp_dict != NULL)
/third_party/python/Modules/_multiprocessing/
Dmultiprocessing.c212 if (PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in multiprocessing_exec()
/third_party/python/Modules/
D_abc.c458 PyObject *flags = _PyDict_GetItemIdWithError(cls->tp_dict, &PyId___abc_tpflags__); in _abc__abc_init()
476 if (_PyDict_DelItemId(cls->tp_dict, &PyId___abc_tpflags__) < 0) { in _abc__abc_init()
D_datetimemodule.c6558 PyObject *d = PyDateTime_DeltaType.tp_dict; in _datetime_exec()
6565 d = PyDateTime_DateType.tp_dict; in _datetime_exec()
6571 d = PyDateTime_TimeType.tp_dict; in _datetime_exec()
6577 d = PyDateTime_DateTimeType.tp_dict; in _datetime_exec()
6585 d = PyDateTime_TimeZoneType.tp_dict; in _datetime_exec()
Dpyexpat.c1612 if (PyDict_SetDefault(state->xml_parse_type->tp_dict, PyDescr_NAME(descr), descr) == NULL) { in init_handler_descrs()
D_testcapimodule.c415 if (type->tp_dict != NULL) in test_lazy_hash_inheritance()
430 if (type->tp_dict != NULL) { in test_lazy_hash_inheritance()
448 if (type->tp_dict == NULL) { in test_lazy_hash_inheritance()
Dmathmodule.c2121 if (Py_TYPE(x)->tp_dict == NULL) { in math_trunc()
/third_party/python/Include/cpython/
Dobject.h252 PyObject *tp_dict; member
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc1892 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()
Dmessage.cc2943 PyDict_SetItem(CMessage_Type->tp_dict, kDESCRIPTOR, Py_None); in InitProto2MessageModule()
/third_party/python/Doc/c-api/
Dtypeobj.rst113 …| :c:member:`~PyTypeObject.tp_dict` | :c:type:`PyObject` * | __dict__ …
1565 :c:member:`~PyTypeObject.tp_dict` below) containing a method descriptor.
1580 :c:member:`~PyTypeObject.tp_dict` below) containing a member descriptor.
1594 :c:member:`~PyTypeObject.tp_dict` below) containing a getset descriptor.
1636 .. c:member:: PyObject* PyTypeObject.tp_dict
1659 :c:member:`~PyTypeObject.tp_dict` with the dictionary C-API.
1702 Do not confuse this field with :c:member:`~PyTypeObject.tp_dict`; that is the dictionary for
2639 0, /* tp_dict */
Dtype.rst249 * :c:member:`~PyTypeObject.tp_dict`
/third_party/python/Python/
Dcontext.c1334 PyContextToken_Type.tp_dict, "MISSING", missing)) in _PyContext_Init()
Dbltinmodule.c2283 if (Py_TYPE(number)->tp_dict == NULL) { in builtin_round_impl()
Dceval.c3445 assert(type->tp_dict != NULL); in _PyEval_EvalFrameDefault()
3498 if (type->tp_dict == NULL) { in _PyEval_EvalFrameDefault()
/third_party/python/Modules/_decimal/
D_decimal.c5713 CHECK_INT(PyDict_SetItemString(PyDec_Type.tp_dict, "__module__", obj)); in PyInit__decimal()
5714 CHECK_INT(PyDict_SetItemString(PyDecContext_Type.tp_dict, in PyInit__decimal()
5739 CHECK_INT(PyDict_SetItemString(DecimalTuple->tp_dict, "__module__", obj)); in PyInit__decimal()

12