Home
last modified time | relevance | path

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

/external/python/cpython2/Doc/includes/
Dtypestruct.h4 int tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython3/Doc/includes/
Dtypestruct.h4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/external/python/cpython3/Objects/
Dtypeobject.c342 {"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
948 if (type->tp_itemsize == 0) in PyType_GenericAlloc()
2008 if (type->tp_itemsize || base->tp_itemsize) { in extra_ivars()
2011 type->tp_itemsize != base->tp_itemsize; in extra_ivars()
2369 may_add_weak = base->tp_weaklistoffset == 0 && base->tp_itemsize == 0; in type_new()
2392 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2641 if (base->tp_itemsize) in type_new()
2648 assert(!base->tp_itemsize); in type_new()
2653 type->tp_itemsize = base->tp_itemsize; in type_new()
2814 type->tp_itemsize = spec->itemsize; in PyType_FromSpecWithBases()
[all …]
Dexceptions.c2739 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()
2188 may_add_weak = base->tp_weaklistoffset == 0 && base->tp_itemsize == 0; in type_new()
2213 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2463 if (base->tp_itemsize) in type_new()
2470 assert(!base->tp_itemsize); in type_new()
2475 type->tp_itemsize = base->tp_itemsize; in type_new()
2498 type->tp_itemsize == 0)) in type_new()
[all …]
Dstructseq.c502 type->tp_itemsize = 0; in PyStructSequence_InitType()
Dstringobject.c3581 res = PyStringObject_SIZE + PyString_GET_SIZE(v) * Py_TYPE(v)->tp_itemsize; in string_sizeof()
/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
821 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
825 …where :c:member:`~PyTypeObject.tp_basicsize`, :c:member:`~PyTypeObject.tp_itemsize` and :c:member:…
[all …]
/external/python/cpython2/Include/
Dobjimpl.h187 (nitems)*(typeobj)->tp_itemsize + \
Dobject.h327 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/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/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
922 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
926 …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.c1103 .tp_itemsize = 0,
1200 .tp_itemsize = 0,
1271 .tp_itemsize = 0,
/external/tensorflow/tensorflow/python/eager/
Dpywrap_tensor.cc611 if (base_class_type->tp_itemsize != 0) { in TFE_Py_InitEagerTensor()
/external/python/cpython3/Doc/extending/
Dnewtypes.rst82 0, /* tp_itemsize */
155 0, /* tp_itemsize */
910 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
914 structures (think: strings, lists) which is where the :c:member:`~PyTypeObject.tp_itemsize` field
/external/python/cpython2/Doc/extending/
Dnewtypes.rst86 0, /*tp_itemsize*/
166 0, /* tp_itemsize */
937 int tp_basicsize, tp_itemsize; /* For allocation */
941 structures (think: strings, lists) which is where the :c:member:`~PyTypeObject.tp_itemsize` field