Home
last modified time | relevance | path

Searched refs:tp_base (Results 1 – 25 of 42) sorted by relevance

12

/external/python/cpython2/Modules/_io/
D_iomodule.c669 _PyExc_BlockingIOError.tp_base = (PyTypeObject *) PyExc_IOError; in init_io()
682 PyFileIO_Type.tp_base = &PyRawIOBase_Type; in init_io()
686 PyBytesIO_Type.tp_base = &PyBufferedIOBase_Type; in init_io()
690 PyStringIO_Type.tp_base = &PyTextIOBase_Type; in init_io()
694 PyBufferedReader_Type.tp_base = &PyBufferedIOBase_Type; in init_io()
698 PyBufferedWriter_Type.tp_base = &PyBufferedIOBase_Type; in init_io()
702 PyBufferedRWPair_Type.tp_base = &PyBufferedIOBase_Type; in init_io()
706 PyBufferedRandom_Type.tp_base = &PyBufferedIOBase_Type; in init_io()
710 PyTextIOWrapper_Type.tp_base = &PyTextIOBase_Type; in init_io()
/external/python/cpython3/Modules/_io/
D_iomodule.c721 PyFileIO_Type.tp_base = &PyRawIOBase_Type; in PyInit__io()
725 PyBytesIO_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
731 PyStringIO_Type.tp_base = &PyTextIOBase_Type; in PyInit__io()
736 PyWindowsConsoleIO_Type.tp_base = &PyRawIOBase_Type; in PyInit__io()
741 PyBufferedReader_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
745 PyBufferedWriter_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
749 PyBufferedRWPair_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
753 PyBufferedRandom_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
757 PyTextIOWrapper_Type.tp_base = &PyTextIOBase_Type; in PyInit__io()
/external/python/cpython2/Modules/
Dxxmodule.c347 Null_Type.tp_base = &PyBaseObject_Type; in initxx()
349 Str_Type.tp_base = &PyUnicode_Type; in initxx()
Dxxsubtype.c269 spamdict_type.tp_base = &PyDict_Type; in initxxsubtype()
273 spamlist_type.tp_base = &PyList_Type; in initxxsubtype()
/external/python/cpython2/Objects/
Dtypeobject.c216 {"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
495 if (!compatible_for_assignment(type->tp_base, new_base, "__bases__")) in type_set_bases()
502 old_base = type->tp_base; in type_set_bases()
506 type->tp_base = new_base; in type_set_bases()
569 Py_DECREF(type->tp_base); in type_set_bases()
575 type->tp_base = old_base; in type_set_bases()
849 base = base->tp_base; in subtype_traverse()
903 base = base->tp_base; in subtype_clear()
951 base = base->tp_base; in subtype_dealloc()
988 base = base->tp_base; in subtype_dealloc()
[all …]
/external/python/cpython3/Modules/
Dxxsubtype.c267 spamdict_type.tp_base = &PyDict_Type; in xxsubtype_exec()
271 spamlist_type.tp_base = &PyList_Type; in xxsubtype_exec()
Dxxmodule.c356 Null_Type.tp_base = &PyBaseObject_Type; in xx_exec()
357 Str_Type.tp_base = &PyUnicode_Type; in xx_exec()
/external/python/cpython3/Objects/
Dtypeobject.c417 {"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
774 if (!compatible_for_assignment(type->tp_base, new_base, "__bases__")) in type_set_bases()
781 old_base = type->tp_base; in type_set_bases()
784 type->tp_base = new_base; in type_set_bases()
832 assert(type->tp_base == new_base); in type_set_bases()
835 type->tp_base = old_base; in type_set_bases()
1118 base = base->tp_base; in subtype_traverse()
1177 base = base->tp_base; in subtype_clear()
1227 base = base->tp_base; in subtype_dealloc()
1257 base = base->tp_base; in subtype_dealloc()
[all …]
Dtypeslots.inc49 offsetof(PyHeapTypeObject, ht_type.tp_base),
Dstructseq.c411 type->tp_base = &PyTuple_Type; in PyStructSequence_InitType2()
Dmethodobject.c373 .tp_base = &PyCFunction_Type,
/external/python/cpython2/Doc/includes/
Dshoddy.c80 ShoddyType.tp_base = &PyList_Type; in initshoddy()
Dtypestruct.h60 struct _typeobject *tp_base; member
/external/python/cpython3/Doc/includes/
Dtypestruct.h58 struct _typeobject *tp_base; member
Dsublist.c53 SubListType.tp_base = &PyList_Type; in PyInit_sublist()
/external/tensorflow/tensorflow/python/util/
Dfast_module_type.cc250 tp = tp->tp_base; in IsAnyBaseSameType()
263 FastModuleType.tp_base = &PyModule_Type; in PYBIND11_MODULE()
/external/python/pybind11/include/pybind11/detail/
Dclass.h79 type->tp_base = type_incref(&PyProperty_Type); in make_static_property_type()
256 type->tp_base = type_incref(&PyType_Type); in make_default_metaclass()
462 type->tp_base = type_incref(&PyBaseObject_Type); in make_object_base_type()
657 type->tp_base = type_incref((PyTypeObject *)base); in make_new_python_type()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c539 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new()
2171 if (result->tp_base == &Simple_Type) { in PyCSimpleType_new()
3065 return type->tp_base != &Simple_Type; in _ctypes_simple_instance()
4373 if (PyType_stgdict((PyObject *)type->tp_base)) { in _init_pos_args()
4374 index = _init_pos_args(self, type->tp_base, in _init_pos_args()
5031 if (Py_TYPE(self)->tp_base != &Simple_Type) { in Simple_repr()
5566 PyComError_Type.tp_base = (PyTypeObject*)PyExc_Exception; in create_comerror()
5725 PyCStgDict_Type.tp_base = &PyDict_Type; in PyInit__ctypes()
5734 PyCStructType_Type.tp_base = &PyType_Type; in PyInit__ctypes()
5738 UnionType_Type.tp_base = &PyType_Type; in PyInit__ctypes()
[all …]
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c510 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new()
2116 if (result->tp_base == &Simple_Type) { in PyCSimpleType_new()
2984 return type->tp_base != &Simple_Type; in _ctypes_simple_instance()
4248 if (PyType_stgdict((PyObject *)type->tp_base)) { in _init_pos_args()
4249 index = _init_pos_args(self, type->tp_base, in _init_pos_args()
4978 if (Py_TYPE(self)->tp_base != &Simple_Type) { in Simple_repr()
5700 PyCStgDict_Type.tp_base = &PyDict_Type; in init_ctypes()
5709 PyCStructType_Type.tp_base = &PyType_Type; in init_ctypes()
5713 UnionType_Type.tp_base = &PyType_Type; in init_ctypes()
5717 PyCPointerType_Type.tp_base = &PyType_Type; in init_ctypes()
[all …]
Dstgdict.c392 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()
/external/python/cpython3/Include/cpython/
Dobject.h252 struct _typeobject *tp_base; member
/external/python/cpython2/Mac/Modules/cf/
D_CFmodule.c4910 CFArrayRef_Type.tp_base = &CFTypeRef_Type; in init_CF()
4918 CFMutableArrayRef_Type.tp_base = &CFArrayRef_Type; in init_CF()
4926 CFDictionaryRef_Type.tp_base = &CFTypeRef_Type; in init_CF()
4934 CFMutableDictionaryRef_Type.tp_base = &CFDictionaryRef_Type; in init_CF()
4942 CFDataRef_Type.tp_base = &CFTypeRef_Type; in init_CF()
4950 CFMutableDataRef_Type.tp_base = &CFDataRef_Type; in init_CF()
4958 CFStringRef_Type.tp_base = &CFTypeRef_Type; in init_CF()
4966 CFMutableStringRef_Type.tp_base = &CFStringRef_Type; in init_CF()
4974 CFURLRef_Type.tp_base = &CFTypeRef_Type; in init_CF()
/external/protobuf/python/google/protobuf/pyext/
Dmap_container.cc1044 _ScalarMapContainer_Type.tp_base = in InitMapContainers()
1063 _MessageMapContainer_Type.tp_base = in InitMapContainers()
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst358 ``type->tp_base->tp_new``. If you do not do this, Python subclasses of your
853 The :c:type:`PyTypeObject` struct supports a :c:member:`~PyTypeObject.tp_base`
863 SubListType.tp_base = &PyList_Type;
882 :c:member:`~PyTypeObject.tp_base` slot filled in. When we are deriving an
/external/python/cpython2/Include/
Dobject.h383 struct _typeobject *tp_base; member

12