Home
last modified time | relevance | path

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

12

/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/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.c441 if (PyDict_GetItemString(result->tp_dict, "_abstract_")) in StructUnionType_new()
451 if (-1 == PyDict_Update((PyObject *)dict, result->tp_dict)) { in StructUnionType_new()
456 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new()
1026 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCPointerType_new()
1031 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new()
1365 PyObject *dict = type->tp_dict; in add_getset()
1491 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) in PyCArrayType_new()
1493 Py_SETREF(result->tp_dict, (PyObject *)stgdict); /* steal the reference */ in PyCArrayType_new()
1905 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in CreateSwappedType()
1910 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType()
[all …]
/external/python/cpython3/Modules/_blake2/
Dblake2module.c73 d = PyBlake2_BLAKE2bType.tp_dict; in PyInit__blake2()
93 d = PyBlake2_BLAKE2sType.tp_dict; in PyInit__blake2()
/external/python/cpython3/Objects/
Dstructseq.c20 _PyDict_GetItemId((tp)->tp_dict, &PyId_n_sequence_fields))
23 _PyDict_GetItemId((tp)->tp_dict, &PyId_n_fields))
27 _PyDict_GetItemId((tp)->tp_dict, &PyId_n_unnamed_fields))
383 dict = type->tp_dict; in PyStructSequence_InitType2()
Dtypeobject.c144 assert(type->tp_dict != NULL); in _PyType_CheckConsistency()
489 mod = _PyDict_GetItemId(type->tp_dict, &PyId___module__); in type_module()
520 return _PyDict_SetItemId(type->tp_dict, &PyId___module__, value); in type_set_module()
530 mod = _PyDict_GetItemId(type->tp_dict, &PyId___abstractmethods__); in type_abstractmethods()
553 res = _PyDict_SetItemId(type->tp_dict, &PyId___abstractmethods__, value); in type_set_abstractmethods()
557 res = _PyDict_DelItemId(type->tp_dict, &PyId___abstractmethods__); in type_set_abstractmethods()
793 if (type->tp_dict == NULL) { in type_dict()
796 return PyDictProxy_New(type->tp_dict); in type_dict()
806 result = _PyDict_GetItemId(type->tp_dict, &PyId___doc__); in type_get_doc()
833 return _PyDict_SetItemId(type->tp_dict, &PyId___doc__, value); in type_set_doc()
[all …]
Dclassobject.c140 if (tp->tp_dict == NULL) { in method_getattro()
456 if (tp->tp_dict == NULL) { in instancemethod_getattro()
Dobject.c797 if (tp->tp_dict == NULL) { in PyObject_Hash()
1141 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GetMethod()
1223 if (tp->tp_dict == NULL) { in _PyObject_GenericGetAttrWithDict()
1326 if (tp->tp_dict == NULL && PyType_Ready(tp) < 0) in _PyObject_GenericSetAttrWithDict()
/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/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/Python/
Dsysmodule.c2382 res = PyDict_DelItemString(VersionInfoType.tp_dict, "__new__"); in _PySys_BeginInit()
2409 res = PyDict_DelItemString(WindowsVersionType.tp_dict, "__new__"); in _PySys_BeginInit()
2499 res = PyDict_DelItemString(FlagsType.tp_dict, "__new__"); in _PySys_EndInit()
/external/tensorflow/tensorflow/python/lib/core/
Dbfloat16.cc568 if (PyDict_SetItemString(PyBfloat16_Type.tp_dict, "dtype", in Initialize()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc1516 if (PyDict_SetItemString(type->tp_dict, value->name().c_str(), obj.get()) < in AddEnumValues()
1526 if (PyDict_SetItemString(type->tp_dict, name, obj.get()) < 0) { in AddIntConstant()
Dmessage.cc2885 PyDict_SetItem(CMessage_Type.tp_dict, kDESCRIPTOR, Py_None); in CheckAndGetInteger()
2897 if (PyDict_SetItem(CMessage_Type.tp_dict, in CheckAndGetInteger()
2901 if (PyDict_SetItem(CMessage_Type.tp_dict, in CheckAndGetInteger()
/external/python/cpython2/Include/
Dobject.h384 PyObject *tp_dict; member
/external/python/cpython3/Include/
Dobject.h406 PyObject *tp_dict; member
/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/
Dtypeobj.rst708 :c:member:`~PyTypeObject.tp_dict` below) containing a method descriptor.
721 :c:member:`~PyTypeObject.tp_dict` below) containing a member descriptor.
733 :c:member:`~PyTypeObject.tp_dict` below) containing a getset descriptor.
750 .. c:member:: PyObject* PyTypeObject.tp_dict
766 :c:member:`~PyTypeObject.tp_dict` with the dictionary C-API.
804 Do not confuse this field with :c:member:`~PyTypeObject.tp_dict`; that is the dictionary for

12