Home
last modified time | relevance | path

Searched refs:tp_base (Results 1 – 25 of 34) 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.c710 PyFileIO_Type.tp_base = &PyRawIOBase_Type; in PyInit__io()
714 PyBytesIO_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
720 PyStringIO_Type.tp_base = &PyTextIOBase_Type; in PyInit__io()
725 PyWindowsConsoleIO_Type.tp_base = &PyRawIOBase_Type; in PyInit__io()
730 PyBufferedReader_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
734 PyBufferedWriter_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
738 PyBufferedRWPair_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
742 PyBufferedRandom_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
746 PyTextIOWrapper_Type.tp_base = &PyTextIOBase_Type; in PyInit__io()
/external/python/cpython3/Objects/
Dtypeobject.c346 {"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
687 if (!compatible_for_assignment(type->tp_base, new_base, "__bases__")) in type_set_bases()
694 old_base = type->tp_base; in type_set_bases()
697 type->tp_base = new_base; in type_set_bases()
744 assert(type->tp_base == new_base); in type_set_bases()
747 type->tp_base = old_base; in type_set_bases()
1004 base = base->tp_base; in subtype_traverse()
1058 base = base->tp_base; in subtype_clear()
1111 base = base->tp_base; in subtype_dealloc()
1143 base = base->tp_base; in subtype_dealloc()
[all …]
Dtypeslots.inc49 offsetof(PyHeapTypeObject, ht_type.tp_base),
Dstructseq.c346 type->tp_base = &PyTuple_Type; in PyStructSequence_InitType2()
/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/cpython2/Modules/
Dxxsubtype.c269 spamdict_type.tp_base = &PyDict_Type; in initxxsubtype()
273 spamlist_type.tp_base = &PyList_Type; in initxxsubtype()
Dxxmodule.c347 Null_Type.tp_base = &PyBaseObject_Type; in initxx()
349 Str_Type.tp_base = &PyUnicode_Type; in initxx()
/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.c344 Null_Type.tp_base = &PyBaseObject_Type; in xx_exec()
346 Str_Type.tp_base = &PyUnicode_Type; in xx_exec()
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c399 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new()
1962 if (result->tp_base == &Simple_Type) { in PyCSimpleType_new()
2773 return type->tp_base != &Simple_Type; in _ctypes_simple_instance()
4041 if (PyType_stgdict((PyObject *)type->tp_base)) { in _init_pos_args()
4042 index = _init_pos_args(self, type->tp_base, in _init_pos_args()
4678 if (Py_TYPE(self)->tp_base != &Simple_Type) { in Simple_repr()
5212 PyComError_Type.tp_base = (PyTypeObject*)PyExc_Exception; in create_comerror()
5368 PyCStgDict_Type.tp_base = &PyDict_Type; in PyInit__ctypes()
5377 PyCStructType_Type.tp_base = &PyType_Type; in PyInit__ctypes()
5381 UnionType_Type.tp_base = &PyType_Type; in PyInit__ctypes()
[all …]
Dstgdict.c380 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()
/external/python/cpython2/Doc/includes/
Dshoddy.c81 ShoddyType.tp_base = &PyList_Type; in initshoddy()
Dtypestruct.h60 struct _typeobject *tp_base; member
/external/python/cpython3/Doc/includes/
Dshoddy.c88 ShoddyType.tp_base = &PyList_Type; in PyInit_shoddy()
Dtypestruct.h58 struct _typeobject *tp_base; member
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c439 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new()
2036 if (result->tp_base == &Simple_Type) { in PyCSimpleType_new()
2890 return type->tp_base != &Simple_Type; in _ctypes_simple_instance()
4151 if (PyType_stgdict((PyObject *)type->tp_base)) { in _init_pos_args()
4152 index = _init_pos_args(self, type->tp_base, in _init_pos_args()
4883 if (Py_TYPE(self)->tp_base != &Simple_Type) { in Simple_repr()
5605 PyCStgDict_Type.tp_base = &PyDict_Type; in init_ctypes()
5614 PyCStructType_Type.tp_base = &PyType_Type; in init_ctypes()
5618 UnionType_Type.tp_base = &PyType_Type; in init_ctypes()
5622 PyCPointerType_Type.tp_base = &PyType_Type; in init_ctypes()
[all …]
Dstgdict.c384 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()
/external/tensorflow/tensorflow/python/lib/core/
Dbfloat16.cc538 PyBfloat16_Type.tp_base = &PyGenericArrType_Type; in Initialize()
664 CHECK(PyBfloat16_Type.tp_base != nullptr); in Bfloat16PyType()
/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/
Dmessage.cc2653 return CMessage_Type.tp_base->tp_getattro( in CheckAndGetInteger()
2872 CMessageClass_Type.tp_base = &PyType_Type; in CheckAndGetInteger()
2977 ScalarMapContainer_Type.tp_base = in CheckAndGetInteger()
3002 MessageMapContainer_Type.tp_base = in CheckAndGetInteger()
/external/python/cpython2/Include/
Dobject.h383 struct _typeobject *tp_base; member
/external/python/cpython3/Include/
Dobject.h405 struct _typeobject *tp_base; member
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc635 _EagerTensorType.tp_base = reinterpret_cast<PyTypeObject*>(base_class); in TFE_Py_InitEagerTensor()
/external/python/cpython3/Doc/extending/
Dnewtypes.rst349 ``type->tp_base->tp_new``. If you do not do this, Python subclasses of your
847 a slot for :c:func:`tp_base`. Due to cross platform compiler issues, you can't
856 ShoddyType.tp_base = &PyList_Type;
870 :c:member:`~PyTypeObject.tp_base` slot filled in. When we are deriving a new type, it is not

12