Home
last modified time | relevance | path

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

/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.c413 if (PyDict_GetItemString(result->tp_dict, "_abstract_")) in StructUnionType_new()
423 if (-1 == PyDict_Update((PyObject *)dict, result->tp_dict)) { in StructUnionType_new()
428 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new()
997 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCPointerType_new()
1002 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new()
1348 PyObject *dict = type->tp_dict; in add_getset()
1470 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in PyCArrayType_new()
1475 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCArrayType_new()
1897 if (-1 == PyDict_Update((PyObject *)stgdict, result->tp_dict)) { in CreateSwappedType()
1902 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.c1115 if (tp->tp_dict == NULL) { in PyObject_Hash()
1358 if (tp->tp_dict == NULL) { in _PyObject_GenericGetAttrWithDict()
1380 dict = ((PyTypeObject *)base)->tp_dict; in _PyObject_GenericGetAttrWithDict()
1496 if (tp->tp_dict == NULL) { in _PyObject_GenericSetAttrWithDict()
Dclassobject.c2328 if (tp->tp_dict == NULL) { in instancemethod_getattro()
/external/python/cpython2/Doc/includes/
Dtypestruct.h61 PyObject *tp_dict; member
/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/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/Modules/
D_testcapimodule.c232 if (type->tp_dict != NULL) in test_lazy_hash_inheritance()
247 if (type->tp_dict != NULL) { in test_lazy_hash_inheritance()
265 if (type->tp_dict == NULL) { in test_lazy_hash_inheritance()
Ddatetimemodule.c4788 d = PyDateTime_DeltaType.tp_dict; in initdatetime()
4806 d = PyDateTime_DateType.tp_dict; in initdatetime()
4824 d = PyDateTime_TimeType.tp_dict; in initdatetime()
4842 d = PyDateTime_DateTimeType.tp_dict; in initdatetime()
/external/python/cpython2/Include/
Dobject.h384 PyObject *tp_dict; member
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst514 …:c:member:`~PyTypeObject.tp_base`, :c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject.tp_…
798 :c:member:`~PyTypeObject.tp_dict` below) containing a method descriptor.
811 :c:member:`~PyTypeObject.tp_dict` below) containing a member descriptor.
823 :c:member:`~PyTypeObject.tp_dict` below) containing a getset descriptor.
855 .. c:member:: PyObject* PyTypeObject.tp_dict
904 Do not confuse this field with :c:member:`~PyTypeObject.tp_dict`; that is the dictionary for
/external/python/cpython2/Python/
DPython-ast.c656 d = AST_type.tp_dict; in add_ast_fields()
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1712 must not directly access and modify the ``tp_dict`` member of
/external/python/cpython2/Misc/
DNEWS7628 the tp_hash and tp_dict slots are both NULL.