Home
last modified time | relevance | path

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

12

/third_party/python/Modules/_io/
D_iomodule.c736 PyFileIO_Type.tp_base = &PyRawIOBase_Type; in PyInit__io()
740 PyBytesIO_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
746 PyStringIO_Type.tp_base = &PyTextIOBase_Type; in PyInit__io()
751 PyWindowsConsoleIO_Type.tp_base = &PyRawIOBase_Type; in PyInit__io()
756 PyBufferedReader_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
760 PyBufferedWriter_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
764 PyBufferedRWPair_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
768 PyBufferedRandom_Type.tp_base = &PyBufferedIOBase_Type; in PyInit__io()
772 PyTextIOWrapper_Type.tp_base = &PyTextIOBase_Type; in PyInit__io()
/third_party/boost/libs/python/src/object/
Denum.cpp158 enum_type_object.tp_base = &PyLong_Type; in new_enum_type()
160 enum_type_object.tp_base = &PyInt_Type; in new_enum_type()
Dclass.cpp212 static_data_object.tp_base = &PyProperty_Type; in static_data()
320 class_metatype_object.tp_base = &PyType_Type; in class_metatype()
474 class_type_object.tp_base = &PyBaseObject_Type; in class_type()
/third_party/python/Modules/
Dxxmodule.c356 Null_Type.tp_base = &PyBaseObject_Type; in xx_exec()
357 Str_Type.tp_base = &PyUnicode_Type; in xx_exec()
Dxxsubtype.c267 spamdict_type.tp_base = &PyDict_Type; in xxsubtype_exec()
271 spamlist_type.tp_base = &PyList_Type; in xxsubtype_exec()
D_testcapimodule.c7179 MyList_Type.tp_base = &PyList_Type; in PyInit__testcapi()
7190 MethodDescriptorDerived_Type.tp_base = &MethodDescriptorBase_Type; in PyInit__testcapi()
7196 MethodDescriptorNopGet_Type.tp_base = &MethodDescriptorBase_Type; in PyInit__testcapi()
7202 MethodDescriptor2_Type.tp_base = &MethodDescriptorBase_Type; in PyInit__testcapi()
7233 PyRecursingInfinitelyError_Type.tp_base = (PyTypeObject *)PyExc_Exception; in PyInit__testcapi()
D_datetimemodule.c6521 PyDateTime_IsoCalendarDateType.tp_base = &PyTuple_Type; in _datetime_exec()
6522 PyDateTime_TimeZoneType.tp_base = &PyDateTime_TZInfoType; in _datetime_exec()
6523 PyDateTime_DateTimeType.tp_base = &PyDateTime_DateType; in _datetime_exec()
D_zoneinfo.c2646 PyZoneInfo_ZoneInfoType.tp_base = PyDateTimeAPI->TZInfoType; in zoneinfomodule_exec()
D_asynciomodule.c2492 .tp_base = &FutureType,
D_collectionsmodule.c2609 defdict_type.tp_base = &PyDict_Type; in collections_exec()
/third_party/python/Objects/
Dtypeobject.c453 {"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
812 if (!compatible_for_assignment(type->tp_base, new_base, "__bases__")) in type_set_bases()
819 old_base = type->tp_base; in type_set_bases()
822 type->tp_base = new_base; in type_set_bases()
870 assert(type->tp_base == new_base); in type_set_bases()
873 type->tp_base = old_base; in type_set_bases()
1225 base = base->tp_base; in subtype_traverse()
1284 base = base->tp_base; in subtype_clear()
1334 base = base->tp_base; in subtype_dealloc()
1372 base = base->tp_base; in subtype_dealloc()
[all …]
Dtypeslots.inc49 {-1, offsetof(PyTypeObject, tp_base)},
Dmethodobject.c377 .tp_base = &PyCFunction_Type,
Dstructseq.c491 type->tp_base = &PyTuple_Type; in _PyStructSequence_InitType()
Dobject.c1793 assert(PyBaseObject_Type.tp_base == NULL); in _PyTypes_Init()
1794 assert(PyType_Type.tp_base == &PyBaseObject_Type); in _PyTypes_Init()
/third_party/python/Doc/includes/
Dsublist.c53 SubListType.tp_base = &PyList_Type; in PyInit_sublist()
Dtypestruct.h61 struct _typeobject *tp_base; member
/third_party/protobuf/python/google/protobuf/pyext/
Dmap_container.cc1018 _ScalarMapContainer_Type.tp_base = in InitMapContainers()
1037 _MessageMapContainer_Type.tp_base = in InitMapContainers()
Dmessage.cc483 PyObject* result = CMessageClass_Type->tp_base->tp_getattro( in GetAttr()
2927 CMessageClass_Type->tp_base = &PyType_Type; in InitProto2MessageModule()
/third_party/python/Include/cpython/
Dobject.h251 struct _typeobject *tp_base; member
/third_party/python/Modules/_ctypes/
D_ctypes.c546 StgDictObject *basedict = PyType_stgdict((PyObject *)result->tp_base); in StructUnionType_new()
2168 if (result->tp_base == &Simple_Type) { in PyCSimpleType_new()
3062 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()
5027 if (Py_TYPE(self)->tp_base != &Simple_Type) { in Simple_repr()
5683 type->tp_base = (TP_BASE); \ in _ctypes_add_types()
5691 type->tp_base = TP_BASE; \ in _ctypes_add_types()
Dstgdict.c442 basedict = PyType_stgdict((PyObject *)((PyTypeObject *)type)->tp_base); in PyCStructUnionType_update_stgdict()
/third_party/python/Doc/extending/
Dnewtypes_tutorial.rst359 ``type->tp_base->tp_new``. If you do not do this, Python subclasses of your
854 The :c:type:`PyTypeObject` struct supports a :c:member:`~PyTypeObject.tp_base`
864 SubListType.tp_base = &PyList_Type;
883 :c:member:`~PyTypeObject.tp_base` slot filled in. When we are deriving an
/third_party/python/Doc/c-api/
Dtypeobj.rst111 …| :c:member:`~PyTypeObject.tp_base` | :c:type:`PyTypeObject` * | __base__ …
1215 :c:member:`~PyTypeObject.tp_base` is NULL or ``&PyBaseObject_Type`` and
1602 .. c:member:: PyTypeObject* PyTypeObject.tp_base
1623 Consequently, :c:member:`~PyTypeObject.tp_base` should be set in
1842 :ref:`static types <static-types>` whose :c:member:`~PyTypeObject.tp_base`
2638 0, /* tp_base */
2688 .tp_base = NULL, // set to &PyUnicode_Type in module init
/third_party/python/Modules/_decimal/
D_decimal.c5702 PyDec_Type.tp_base = &PyBaseObject_Type; in PyInit__decimal()
5703 PyDecContext_Type.tp_base = &PyBaseObject_Type; in PyInit__decimal()
5704 PyDecContextManager_Type.tp_base = &PyBaseObject_Type; in PyInit__decimal()
5705 PyDecSignalDictMixin_Type.tp_base = &PyBaseObject_Type; in PyInit__decimal()

12