Home
last modified time | relevance | path

Searched refs:PyTypeObject (Results 1 – 25 of 580) sorted by relevance

12345678910>>...24

/external/python/cpython3/Include/
Ddescrobject.h43 PyTypeObject *d_type;
76 PyAPI_DATA(PyTypeObject) PyClassMethodDescr_Type;
77 PyAPI_DATA(PyTypeObject) PyGetSetDescr_Type;
78 PyAPI_DATA(PyTypeObject) PyMemberDescr_Type;
79 PyAPI_DATA(PyTypeObject) PyMethodDescr_Type;
80 PyAPI_DATA(PyTypeObject) PyWrapperDescr_Type;
81 PyAPI_DATA(PyTypeObject) PyDictProxy_Type;
83 PyAPI_DATA(PyTypeObject) _PyMethodWrapper_Type;
86 PyAPI_FUNC(PyObject *) PyDescr_NewMethod(PyTypeObject *, PyMethodDef *);
87 PyAPI_FUNC(PyObject *) PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *);
[all …]
Ddictobject.h15 PyAPI_DATA(PyTypeObject) PyDict_Type;
63 PyAPI_DATA(PyTypeObject) PyDictKeys_Type;
64 PyAPI_DATA(PyTypeObject) PyDictValues_Type;
65 PyAPI_DATA(PyTypeObject) PyDictItems_Type;
76 PyAPI_DATA(PyTypeObject) PyDictIterKey_Type;
77 PyAPI_DATA(PyTypeObject) PyDictIterValue_Type;
78 PyAPI_DATA(PyTypeObject) PyDictIterItem_Type;
80 PyAPI_DATA(PyTypeObject) PyDictRevIterKey_Type;
81 PyAPI_DATA(PyTypeObject) PyDictRevIterItem_Type;
82 PyAPI_DATA(PyTypeObject) PyDictRevIterValue_Type;
Dgenobject.h38 PyAPI_DATA(PyTypeObject) PyGen_Type;
59 PyAPI_DATA(PyTypeObject) PyCoro_Type;
60 PyAPI_DATA(PyTypeObject) _PyCoroWrapper_Type;
62 PyAPI_DATA(PyTypeObject) _PyAIterWrapper_Type;
87 PyAPI_DATA(PyTypeObject) PyAsyncGen_Type;
88 PyAPI_DATA(PyTypeObject) _PyAsyncGenASend_Type;
89 PyAPI_DATA(PyTypeObject) _PyAsyncGenWrappedValue_Type;
90 PyAPI_DATA(PyTypeObject) _PyAsyncGenAThrow_Type;
Ddatetime.h152 PyTypeObject *DateType;
153 PyTypeObject *DateTimeType;
154 PyTypeObject *TimeType;
155 PyTypeObject *DeltaType;
156 PyTypeObject *TZInfoType;
162 PyObject *(*Date_FromDate)(int, int, int, PyTypeObject*);
164 PyObject*, PyTypeObject*);
165 PyObject *(*Time_FromTime)(int, int, int, int, PyObject*, PyTypeObject*);
166 PyObject *(*Delta_FromDelta)(int, int, int, int, PyTypeObject*);
175 PyObject*, int, PyTypeObject*);
[all …]
Dobjimpl.h119 PyAPI_FUNC(PyObject *) PyObject_Init(PyObject *, PyTypeObject *);
121 PyTypeObject *, Py_ssize_t);
122 PyAPI_FUNC(PyObject *) _PyObject_New(PyTypeObject *);
123 PyAPI_FUNC(PyVarObject *) _PyObject_NewVar(PyTypeObject *, Py_ssize_t);
137 _PyObject_INIT(PyObject *op, PyTypeObject *typeobj) in _PyObject_INIT()
152 _PyObject_INIT_VAR(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size) in _PyObject_INIT_VAR()
240 PyAPI_FUNC(PyObject *) _PyObject_GC_New(PyTypeObject *);
241 PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
Dodictobject.h15 PyAPI_DATA(PyTypeObject) PyODict_Type;
16 PyAPI_DATA(PyTypeObject) PyODictIter_Type;
17 PyAPI_DATA(PyTypeObject) PyODictKeys_Type;
18 PyAPI_DATA(PyTypeObject) PyODictItems_Type;
19 PyAPI_DATA(PyTypeObject) PyODictValues_Type;
/external/python/cpython3/Modules/_io/
D_iomodule.h6 extern PyTypeObject PyIOBase_Type;
7 extern PyTypeObject PyRawIOBase_Type;
8 extern PyTypeObject PyBufferedIOBase_Type;
9 extern PyTypeObject PyTextIOBase_Type;
12 extern PyTypeObject PyFileIO_Type;
13 extern PyTypeObject PyBytesIO_Type;
14 extern PyTypeObject PyStringIO_Type;
15 extern PyTypeObject PyBufferedReader_Type;
16 extern PyTypeObject PyBufferedWriter_Type;
17 extern PyTypeObject PyBufferedRWPair_Type;
[all …]
/external/python/cpython2/Include/
Ddescrobject.h42 PyTypeObject *d_type; \
70 PyAPI_DATA(PyTypeObject) PyWrapperDescr_Type;
71 PyAPI_DATA(PyTypeObject) PyDictProxy_Type;
72 PyAPI_DATA(PyTypeObject) PyGetSetDescr_Type;
73 PyAPI_DATA(PyTypeObject) PyMemberDescr_Type;
75 PyAPI_FUNC(PyObject *) PyDescr_NewMethod(PyTypeObject *, PyMethodDef *);
76 PyAPI_FUNC(PyObject *) PyDescr_NewClassMethod(PyTypeObject *, PyMethodDef *);
77 PyAPI_FUNC(PyObject *) PyDescr_NewMember(PyTypeObject *,
79 PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
81 PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
[all …]
Ddatetime.h142 PyTypeObject *DateType;
143 PyTypeObject *DateTimeType;
144 PyTypeObject *TimeType;
145 PyTypeObject *DeltaType;
146 PyTypeObject *TZInfoType;
149 PyObject *(*Date_FromDate)(int, int, int, PyTypeObject*);
151 PyObject*, PyTypeObject*);
152 PyObject *(*Time_FromTime)(int, int, int, int, PyObject*, PyTypeObject*);
153 PyObject *(*Delta_FromDelta)(int, int, int, int, PyTypeObject*);
/external/python/cpython2/Modules/_io/
D_iomodule.h6 extern PyTypeObject PyIOBase_Type;
7 extern PyTypeObject PyRawIOBase_Type;
8 extern PyTypeObject PyBufferedIOBase_Type;
9 extern PyTypeObject PyTextIOBase_Type;
12 extern PyTypeObject PyFileIO_Type;
13 extern PyTypeObject PyBytesIO_Type;
14 extern PyTypeObject PyStringIO_Type;
15 extern PyTypeObject PyBufferedReader_Type;
16 extern PyTypeObject PyBufferedWriter_Type;
17 extern PyTypeObject PyBufferedRWPair_Type;
[all …]
/external/python/cpython3/Doc/c-api/
Dtype.rst11 .. c:type:: PyTypeObject
38 .. c:function:: unsigned long PyType_GetFlags(PyTypeObject* type)
40 Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This function is primarily
43 :c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API.
51 .. c:function:: void PyType_Modified(PyTypeObject *type)
58 .. c:function:: int PyType_HasFeature(PyTypeObject *o, int feature)
64 .. c:function:: int PyType_IS_GC(PyTypeObject *o)
70 .. c:function:: int PyType_IsSubtype(PyTypeObject *a, PyTypeObject *b)
80 .. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)
82 Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type object. Use
[all …]
Dtypeobj.rst9 structure that defines a new type: the :c:type:`PyTypeObject` structure. Type
25 :c:type:`PyTypeObject`.
40 …| PyTypeObject Slot [#slots]_ | :ref:`Type <slot-typedefs-table>` | special …
44 …| <R> :c:member:`~PyTypeObject.tp_name` | const char * | __name__ …
46 …| :c:member:`~PyTypeObject.tp_basicsize` | Py_ssize_t | …
48 …| :c:member:`~PyTypeObject.tp_itemsize` | Py_ssize_t | …
50 …| :c:member:`~PyTypeObject.tp_dealloc` | :c:type:`destructor` | …
52 …| :c:member:`~PyTypeObject.tp_vectorcall_offset` | Py_ssize_t | …
54 …| (:c:member:`~PyTypeObject.tp_getattr`) | :c:type:`getattrfunc` | __getattrib…
57 …| (:c:member:`~PyTypeObject.tp_setattr`) | :c:type:`setattrfunc` | __setattr__…
[all …]
Ddescriptor.rst13 .. c:var:: PyTypeObject PyProperty_Type
18 .. c:function:: PyObject* PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
21 .. c:function:: PyObject* PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
24 .. c:function:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
27 .. c:function:: PyObject* PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void …
30 .. c:function:: PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
Dgcsupport.rst15 To create a container type, the :c:member:`~PyTypeObject.tp_flags` field of the type object must
17 :c:member:`~PyTypeObject.tp_traverse` handler. If instances of the type are mutable, a
18 :c:member:`~PyTypeObject.tp_clear` implementation must also be provided.
37 .. c:function:: TYPE* PyObject_GC_New(TYPE, PyTypeObject *type)
43 .. c:function:: TYPE* PyObject_GC_NewVar(TYPE, PyTypeObject *type, Py_ssize_t size)
60 followed by the :c:member:`~PyTypeObject.tp_traverse` handler become valid, usually near the
84 (:c:member:`~PyTypeObject.tp_dealloc` handler) should call this for the object before any of
85 the fields used by the :c:member:`~PyTypeObject.tp_traverse` handler become invalid.
93 The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function parameter of this type:
98 Type of the visitor function passed to the :c:member:`~PyTypeObject.tp_traverse` handler.
[all …]
Dallocation.rst9 .. c:function:: PyObject* _PyObject_New(PyTypeObject *type)
12 .. c:function:: PyVarObject* _PyObject_NewVar(PyTypeObject *type, Py_ssize_t size)
15 .. c:function:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)
24 .. c:function:: PyVarObject* PyObject_InitVar(PyVarObject *op, PyTypeObject *type, Py_ssize_t size)
30 .. c:function:: TYPE* PyObject_New(TYPE, PyTypeObject *type)
35 the memory allocation is determined from the :c:member:`~PyTypeObject.tp_basicsize` field of
39 .. c:function:: TYPE* PyObject_NewVar(TYPE, PyTypeObject *type, Py_ssize_t size)
44 plus *size* fields of the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of
55 :c:member:`~PyTypeObject.tp_dealloc` handler specified in the object's type. The fields of
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst9 structure that defines a new type: the :c:type:`PyTypeObject` structure. Type
28 The structure definition for :c:type:`PyTypeObject` can be found in
38 metatype) initializes :c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e.
72 .. c:member:: PyTypeObject* PyObject.ob_type
103 .. c:member:: char* PyTypeObject.tp_name
111 should have the :c:member:`~PyTypeObject.tp_name` initializer ``"P.Q.M.T"``.
122 … If no dot is present, the entire :c:member:`~PyTypeObject.tp_name` field is made accessible as the
131 .. c:member:: Py_ssize_t PyTypeObject.tp_basicsize
132 Py_ssize_t PyTypeObject.tp_itemsize
137 :c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length instances have a non-zero
[all …]
Ddescriptor.rst12 .. c:var:: PyTypeObject PyProperty_Type
19 .. c:function:: PyObject* PyDescr_NewGetSet(PyTypeObject *type, struct PyGetSetDef *getset)
24 .. c:function:: PyObject* PyDescr_NewMember(PyTypeObject *type, struct PyMemberDef *meth)
29 .. c:function:: PyObject* PyDescr_NewMethod(PyTypeObject *type, struct PyMethodDef *meth)
34 .. c:function:: PyObject* PyDescr_NewWrapper(PyTypeObject *type, struct wrapperbase *wrapper, void …
39 .. c:function:: PyObject* PyDescr_NewClassMethod(PyTypeObject *type, PyMethodDef *method)
/external/python/cpython3/Modules/clinic/
Ditertoolsmodule.c.h19 itertools_groupby_impl(PyTypeObject *type, PyObject *it, PyObject *keyfunc);
22 itertools_groupby(PyTypeObject *type, PyObject *args, PyObject *kwargs) in itertools_groupby()
51 itertools__grouper_impl(PyTypeObject *type, PyObject *parent,
55 itertools__grouper(PyTypeObject *type, PyObject *args, PyObject *kwargs) in itertools__grouper()
87 itertools_teedataobject_impl(PyTypeObject *type, PyObject *it,
91 itertools_teedataobject(PyTypeObject *type, PyObject *args, PyObject *kwargs) in itertools_teedataobject()
125 itertools__tee_impl(PyTypeObject *type, PyObject *iterable);
128 itertools__tee(PyTypeObject *type, PyObject *args, PyObject *kwargs) in itertools__tee()
204 itertools_cycle_impl(PyTypeObject *type, PyObject *iterable);
207 itertools_cycle(PyTypeObject *type, PyObject *args, PyObject *kwargs) in itertools_cycle()
[all …]
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.h44 extern PyTypeObject PyMessageDescriptor_Type;
45 extern PyTypeObject PyFieldDescriptor_Type;
46 extern PyTypeObject PyEnumDescriptor_Type;
47 extern PyTypeObject PyEnumValueDescriptor_Type;
48 extern PyTypeObject PyFileDescriptor_Type;
49 extern PyTypeObject PyOneofDescriptor_Type;
50 extern PyTypeObject PyServiceDescriptor_Type;
51 extern PyTypeObject PyMethodDescriptor_Type;
/external/python/cpython3/Objects/clinic/
Dtypeobject.c.h15 type___instancecheck___impl(PyTypeObject *self, PyObject *instance);
18 type___instancecheck__(PyTypeObject *self, PyObject *instance) in type___instancecheck__()
43 type___subclasscheck___impl(PyTypeObject *self, PyObject *subclass);
46 type___subclasscheck__(PyTypeObject *self, PyObject *subclass) in type___subclasscheck__()
71 type_mro_impl(PyTypeObject *self);
74 type_mro(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) in type_mro()
89 type___subclasses___impl(PyTypeObject *self);
92 type___subclasses__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) in type___subclasses__()
107 type___dir___impl(PyTypeObject *self);
110 type___dir__(PyTypeObject *self, PyObject *Py_UNUSED(ignored)) in type___dir__()
[all …]
/external/python/cpython3/Include/internal/
Dpycore_hamt.h64 PyAPI_DATA(PyTypeObject) _PyHamt_Type;
65 PyAPI_DATA(PyTypeObject) _PyHamt_ArrayNode_Type;
66 PyAPI_DATA(PyTypeObject) _PyHamt_BitmapNode_Type;
67 PyAPI_DATA(PyTypeObject) _PyHamt_CollisionNode_Type;
68 PyAPI_DATA(PyTypeObject) _PyHamtKeys_Type;
69 PyAPI_DATA(PyTypeObject) _PyHamtValues_Type;
70 PyAPI_DATA(PyTypeObject) _PyHamtItems_Type;
/external/python/cpython3/Modules/_ctypes/
Dctypes.h70 extern PyTypeObject PyCThunk_Type;
104 extern PyTypeObject PyCStgDict_Type;
109 extern int PyType_stginfo(PyTypeObject *self, Py_ssize_t *psize, Py_ssize_t *palign, Py_ssize_t *pl…
114 extern PyTypeObject PyCData_Type;
119 extern PyTypeObject PyCSimpleType_Type;
123 extern PyTypeObject PyCField_Type;
136 extern PyTypeObject PyCArrayType_Type;
137 extern PyTypeObject PyCArray_Type;
138 extern PyTypeObject PyCPointerType_Type;
139 extern PyTypeObject PyCPointer_Type;
[all …]
/external/python/cpython3/Objects/
Dtypeobject.c76 slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
138 _PyType_CheckConsistency(PyTypeObject *type) in _PyType_CheckConsistency()
244 PyType_Modified(PyTypeObject *type) in PyType_Modified()
279 PyType_Modified((PyTypeObject *)ref); in PyType_Modified()
287 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified()
327 PyTypeObject *cls; in type_mro_modified()
330 cls = (PyTypeObject *)b; in type_mro_modified()
346 assign_version_tag(PyTypeObject *type) in assign_version_tag()
385 if (!assign_version_tag((PyTypeObject *)b)) in assign_version_tag()
394 {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
[all …]
/external/python/cpython2/Modules/_ctypes/
Dctypes.h110 extern PyTypeObject PyCThunk_Type;
144 extern PyTypeObject PyCStgDict_Type;
149 extern int PyType_stginfo(PyTypeObject *self, Py_ssize_t *psize, Py_ssize_t *palign, Py_ssize_t *pl…
154 extern PyTypeObject PyCData_Type;
159 extern PyTypeObject PyCSimpleType_Type;
163 extern PyTypeObject PyCField_Type;
176 extern PyTypeObject PyCArrayType_Type;
177 extern PyTypeObject PyCArray_Type;
178 extern PyTypeObject PyCPointerType_Type;
179 extern PyTypeObject PyCPointer_Type;
[all …]
/external/python/cpython2/Objects/
Dtypeobject.c75 PyType_Modified(PyTypeObject *type) in PyType_Modified()
109 PyType_Modified((PyTypeObject *)ref); in PyType_Modified()
117 type_mro_modified(PyTypeObject *type, PyObject *bases) { in type_mro_modified()
141 PyTypeObject *cls; in type_mro_modified()
148 cls = (PyTypeObject *)b; in type_mro_modified()
163 assign_version_tag(PyTypeObject *type) in assign_version_tag()
202 if (!assign_version_tag((PyTypeObject *)b)) in assign_version_tag()
211 {"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
212 {"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
213 {"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
[all …]

12345678910>>...24