Home
last modified time | relevance | path

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

12

/external/python/cffi/c/
Dcffi1_module.c35 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/
Dblake2module.c70 d = PyBlake2_BLAKE2bType.tp_dict; in PyInit__blake2()
87 d = PyBlake2_BLAKE2sType.tp_dict; in PyInit__blake2()
/external/python/cpython2/Modules/_ctypes/
Dstgdict.c162 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.c484 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/
Dstructseq.c28 _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()
Dtypeobject.c167 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 …]
Dclassobject.c184 if (tp->tp_dict == NULL) { in method_getattro()
430 if (tp->tp_dict == NULL) { in instancemethod_getattro()
Dobject.c775 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/
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.c495 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/
Dstructseq.c18 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()
Dtypeobject.c295 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 …]
Dobject.c1120 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/
Dtypestruct.h61 PyObject *tp_dict; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h59 PyObject *tp_dict; member
/external/python/cpython3/Lib/
Dtyping.py1896 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/
Dmultiprocessing.c184 PyDict_SetItemString(_PyMp_SemLockType.tp_dict, "SEM_VALUE_MAX", in PyInit__multiprocessing()
/external/python/cpython2/Modules/_multiprocessing/
Dmultiprocessing.c292 PyDict_SetItemString(SemLockType.tp_dict, "SEM_VALUE_MAX", in init_multiprocessing()
Dwin32_functions.c16 PyDict_SetItemString(Win32Type.tp_dict, #con, Py_BuildValue(fmt, con))
/external/python/cpython3/Include/cpython/
Dobject.h253 PyObject *tp_dict; member
/external/python/cpython2/Include/
Dobject.h384 PyObject *tp_dict; member
/external/python/cpython3/Python/
Dsysmodule.c2757 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.c239 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/
Dtype.rst232 * :c:member:`~PyTypeObject.tp_dict`
/external/python/cpython3/Modules/
Dpyexpat.c1617 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()

12