Home
last modified time | relevance | path

Searched refs:tp_itemsize (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Doc/includes/
Dcustom.c13 .tp_itemsize = 0,
Dsublist.c35 .tp_itemsize = 0,
Dtypestruct.h4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
Dcustom2.c102 .tp_itemsize = 0,
Dcustom3.c152 .tp_itemsize = 0,
Dcustom4.c164 .tp_itemsize = 0,
/external/python/cpython2/Doc/includes/
Dtypestruct.h4 int tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython3/Objects/
Dtypeobject.c365 {"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
982 if (type->tp_itemsize == 0) in PyType_GenericAlloc()
2068 if (type->tp_itemsize || base->tp_itemsize) { in extra_ivars()
2071 type->tp_itemsize != base->tp_itemsize; in extra_ivars()
2453 may_add_weak = base->tp_weaklistoffset == 0 && base->tp_itemsize == 0; in type_new()
2476 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2743 if (base->tp_itemsize) in type_new()
2750 assert(!base->tp_itemsize); in type_new()
2755 type->tp_itemsize = base->tp_itemsize; in type_new()
2921 type->tp_itemsize = spec->itemsize; in PyType_FromSpecWithBases()
[all …]
Dexceptions.c2745 caught_type->tp_itemsize != _PyExc_BaseException.tp_itemsize) { in _PyErr_TrySetFromCause()
/external/python/cpython2/Objects/
Dtypeobject.c212 {"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
793 if (type->tp_itemsize == 0) in PyType_GenericAlloc()
1789 if (type->tp_itemsize || base->tp_itemsize) { in extra_ivars()
1792 type->tp_itemsize != base->tp_itemsize; in extra_ivars()
2191 may_add_weak = base->tp_weaklistoffset == 0 && base->tp_itemsize == 0; in type_new()
2216 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2466 if (base->tp_itemsize) in type_new()
2473 assert(!base->tp_itemsize); in type_new()
2478 type->tp_itemsize = base->tp_itemsize; in type_new()
2501 type->tp_itemsize == 0)) in type_new()
[all …]
Dstructseq.c502 type->tp_itemsize = 0; in PyStructSequence_InitType()
/external/python/cpython3/Doc/c-api/
Dallocation.rst44 plus *size* fields of the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of
Dtypeobj.rst38 metatype) initializes :c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e.
126 Py_ssize_t PyTypeObject.tp_itemsize
131 :c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length instances have a non-zero
132 :c:member:`~PyTypeObject.tp_itemsize` field. For a type with fixed-length instances, all
137 times :c:member:`~PyTypeObject.tp_itemsize`, where N is the "length" of the object. The value of
155 non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is generally not safe to set
156 :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a subtype (though this
161 suppose a type implements an array of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is
822 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
826 …where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject.tp_itemsize` and :c:member:…
[all …]
/external/python/cpython3/Include/
Dobjimpl.h166 (nitems)*(typeobj)->tp_itemsize, \
Dobject.h349 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython2/Include/
Dobjimpl.h187 (nitems)*(typeobj)->tp_itemsize + \
Dobject.h327 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython2/Doc/c-api/
Dtypeobj.rst38 metatype) initializes :c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e.
132 Py_ssize_t PyTypeObject.tp_itemsize
137 :c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length instances have a non-zero
138 :c:member:`~PyTypeObject.tp_itemsize` field. For a type with fixed-length instances, all
143 times :c:member:`~PyTypeObject.tp_itemsize`, where N is the "length" of the object. The value of
162 non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is generally not safe to set
163 :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a subtype (though this
168 suppose a type implements an array of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is
907 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
911 …where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject.tp_itemsize` and :c:member:…
[all …]
Dallocation.rst55 plus *size* fields of the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of
/external/python/cpython3/Modules/
D_asynciomodule.c1636 .tp_itemsize = 0,
1752 .tp_itemsize = 0,
1827 .tp_itemsize = 0,
/external/python/cpython3/Doc/extending/
Dnewtypes_tutorial.rst94 .tp_itemsize = 0,
134 .tp_itemsize = 0,
137 new :class:`Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is
Dnewtypes.rst35 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
39 structures (think: strings, tuples) which is where the :c:member:`~PyTypeObject.tp_itemsize` field
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc899 if (base_class_type->tp_itemsize != 0) { in TFE_Py_InitEagerTensor()
/external/python/cpython2/Doc/extending/
Dnewtypes.rst85 0, /* tp_itemsize */
158 0, /* tp_itemsize */
940 int tp_basicsize, tp_itemsize; /* For allocation */
944 structures (think: strings, lists) which is where the :c:member:`~PyTypeObject.tp_itemsize` field
/external/python/cpython3/Python/
Dhamt.c2618 .tp_itemsize = 0, \

12