/external/python/cffi/c/ |
D | cffi1_module.c | 35 if (init_global_types_dict(FFI_Type.tp_dict) < 0) in init_ffi_lib() 41 if (PyDict_SetItemString(FFI_Type.tp_dict, "error", FFIError) < 0) in init_ffi_lib() 43 if (PyDict_SetItemString(FFI_Type.tp_dict, "CType", in init_ffi_lib() 46 if (PyDict_SetItemString(FFI_Type.tp_dict, "CData", in init_ffi_lib() 49 if (PyDict_SetItemString(FFI_Type.tp_dict, "buffer", in init_ffi_lib() 57 res = PyDict_SetItemString(FFI_Type.tp_dict, in init_ffi_lib()
|
/external/python/cpython3/Modules/_blake2/ |
D | blake2module.c | 70 d = PyBlake2_BLAKE2bType.tp_dict; in PyInit__blake2() 87 d = PyBlake2_BLAKE2sType.tp_dict; in PyInit__blake2()
|
/external/python/cpython2/Modules/_ctypes/ |
D | stgdict.c | 162 if (!type->tp_dict || !PyCStgDict_CheckExact(type->tp_dict)) in PyType_stgdict() 164 return (StgDictObject *)type->tp_dict; in PyType_stgdict() 178 if (!type->tp_dict || !PyCStgDict_CheckExact(type->tp_dict)) in PyObject_stgdict() 180 return (StgDictObject *)type->tp_dict; in PyObject_stgdict()
|
D | _ctypes.c | 484 if (PyDict_GetItemString(result->tp_dict, "_abstract_")) in StructUnionType_new() 494 if (-1 == PyDict_Update((PyObject *)dict, result->tp_dict)) { in StructUnionType_new() 499 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new() 1069 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCPointerType_new() 1074 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new() 1428 PyObject *dict = type->tp_dict; in add_getset() 1550 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCArrayType_new() 1555 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCArrayType_new() 1977 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in CreateSwappedType() 1982 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType() [all …]
|
/external/python/cpython3/Objects/ |
D | structseq.c | 28 _PyDict_GetItemId((tp)->tp_dict, &PyId_n_sequence_fields)) 31 _PyDict_GetItemId((tp)->tp_dict, &PyId_n_fields)) 35 _PyDict_GetItemId((tp)->tp_dict, &PyId_n_unnamed_fields)) 433 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in PyStructSequence_InitType2() 499 desc, type->tp_dict, n_members, n_unnamed_members) < 0) { in PyStructSequence_NewType()
|
D | typeobject.c | 167 CHECK(type->tp_dict != NULL); in _PyType_CheckConsistency() 544 mod = _PyDict_GetItemIdWithError(type->tp_dict, &PyId___module__); in type_module() 577 return _PyDict_SetItemId(type->tp_dict, &PyId___module__, value); in type_set_module() 587 mod = _PyDict_GetItemIdWithError(type->tp_dict, &PyId___abstractmethods__); in type_abstractmethods() 612 res = _PyDict_SetItemId(type->tp_dict, &PyId___abstractmethods__, value); in type_set_abstractmethods() 616 res = _PyDict_DelItemId(type->tp_dict, &PyId___abstractmethods__); in type_set_abstractmethods() 852 if (type->tp_dict == NULL) { in type_dict() 855 return PyDictProxy_New(type->tp_dict); in type_dict() 865 result = _PyDict_GetItemIdWithError(type->tp_dict, &PyId___doc__); in type_get_doc() 894 return _PyDict_SetItemId(type->tp_dict, &PyId___doc__, value); in type_set_doc() [all …]
|
D | classobject.c | 184 if (tp->tp_dict == NULL) { in method_getattro() 430 if (tp->tp_dict == NULL) { in instancemethod_getattro()
|
D | object.c | 775 if (tp->tp_dict == NULL) { in PyObject_Hash() 1102 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GetMethod() 1189 if (tp->tp_dict == NULL) { in _PyObject_GenericGetAttrWithDict() 1300 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GenericSetAttrWithDict()
|
/external/python/cpython3/Modules/_ctypes/ |
D | stgdict.c | 180 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.c | 495 if (_PyDict_GetItemIdWithError(result->tp_dict, &PyId__abstract_)) in StructUnionType_new() 512 if (-1 == PyDict_Update((PyObject *)dict, result->tp_dict)) { in StructUnionType_new() 517 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new() 1117 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCPointerType_new() 1122 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new() 1461 PyObject *dict = type->tp_dict; in add_getset() 1607 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) in PyCArrayType_new() 1609 Py_SETREF(result->tp_dict, (PyObject *)stgdict); /* steal the reference */ in PyCArrayType_new() 2030 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in CreateSwappedType() 2035 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType() [all …]
|
/external/python/cpython2/Objects/ |
D | structseq.c | 18 PyDict_GetItemString((tp)->tp_dict, visible_length_key)) 21 PyDict_GetItemString((tp)->tp_dict, real_length_key)) 25 PyDict_GetItemString((tp)->tp_dict, unnamed_fields_key)) 527 dict = type->tp_dict; in PyStructSequence_InitType()
|
D | typeobject.c | 295 mod = PyDict_GetItemString(type->tp_dict, "__module__"); in type_module() 328 return PyDict_SetItemString(type->tp_dict, "__module__", value); in type_set_module() 338 mod = PyDict_GetItemString(type->tp_dict, "__abstractmethods__"); in type_abstractmethods() 359 res = PyDict_SetItemString(type->tp_dict, "__abstractmethods__", value); in type_set_abstractmethods() 363 res = PyDict_DelItemString(type->tp_dict, "__abstractmethods__"); in type_set_abstractmethods() 584 if (type->tp_dict == NULL) { in type_dict() 588 return PyDictProxy_New(type->tp_dict); in type_dict() 597 result = PyDict_GetItemString(type->tp_dict, "__doc__"); in type_get_doc() 1579 if (type->tp_dict == NULL) { in mro_implementation() 1747 if (base_i->tp_dict == NULL) { in best_base() [all …]
|
D | object.c | 1120 if (tp->tp_dict == NULL) { in PyObject_Hash() 1363 if (tp->tp_dict == NULL) { in _PyObject_GenericGetAttrWithDict() 1385 dict = ((PyTypeObject *)base)->tp_dict; in _PyObject_GenericGetAttrWithDict() 1501 if (tp->tp_dict == NULL) { in _PyObject_GenericSetAttrWithDict()
|
/external/python/cpython2/Doc/includes/ |
D | typestruct.h | 61 PyObject *tp_dict; member
|
/external/python/cpython3/Doc/includes/ |
D | typestruct.h | 59 PyObject *tp_dict; member
|
/external/python/cpython3/Lib/ |
D | typing.py | 1896 tp_dict = type.__new__(_TypedDictMeta, name, (dict,), ns) 1919 tp_dict.__annotations__ = annotations 1920 tp_dict.__required_keys__ = frozenset(required_keys) 1921 tp_dict.__optional_keys__ = frozenset(optional_keys) 1922 if not hasattr(tp_dict, '__total__'): 1923 tp_dict.__total__ = total 1924 return tp_dict
|
/external/python/cpython3/Modules/_multiprocessing/ |
D | multiprocessing.c | 184 PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in PyInit__multiprocessing()
|
/external/python/cpython2/Modules/_multiprocessing/ |
D | multiprocessing.c | 292 PyDict_SetItemString(SemLockType.tp_dict, "SEM_VALUE_MAX", in init_multiprocessing()
|
D | win32_functions.c | 16 PyDict_SetItemString(Win32Type.tp_dict, #con, Py_BuildValue(fmt, con))
|
/external/python/cpython3/Include/cpython/ |
D | object.h | 253 PyObject *tp_dict; member
|
/external/python/cpython2/Include/ |
D | object.h | 384 PyObject *tp_dict; member
|
/external/python/cpython3/Python/ |
D | sysmodule.c | 2757 res = PyDict_DelItemString(VersionInfoType.tp_dict, "__new__"); in _PySys_InitCore() 2785 res = PyDict_DelItemString(WindowsVersionType.tp_dict, "__new__"); in _PySys_InitCore() 2952 res = PyDict_DelItemString(FlagsType.tp_dict, "__new__"); in _PySys_InitMain()
|
/external/python/cpython2/Modules/ |
D | _testcapimodule.c | 239 if (type->tp_dict != NULL) in test_lazy_hash_inheritance() 254 if (type->tp_dict != NULL) { in test_lazy_hash_inheritance() 272 if (type->tp_dict == NULL) { in test_lazy_hash_inheritance()
|
/external/python/cpython3/Doc/c-api/ |
D | type.rst | 232 * :c:member:`~PyTypeObject.tp_dict`
|
/external/python/cpython3/Modules/ |
D | pyexpat.c | 1617 if (PyDict_GetItemWithError(Xmlparsetype.tp_dict, PyDescr_NAME(descr))) { in init_handler_descrs() 1625 if (PyDict_SetItem(Xmlparsetype.tp_dict, PyDescr_NAME(descr), descr) < 0) { in init_handler_descrs()
|