Home
last modified time | relevance | path

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

/third_party/python/Doc/includes/
Dcustom.c14 .tp_itemsize = 0,
Dtypestruct.h4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
Dsublist.c36 .tp_itemsize = 0,
Dcustom2.c103 .tp_itemsize = 0,
Dcustom3.c153 .tp_itemsize = 0,
Dcustom4.c165 .tp_itemsize = 0,
/third_party/python/Include/cpython/
Dobjimpl.h23 (nitems)*(typeobj)->tp_itemsize, \
Dobject.h194 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
/third_party/python/Objects/
Dtypeobject.c449 {"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
1166 if (type->tp_itemsize == 0) { in PyType_GenericAlloc()
2222 if (type->tp_itemsize || base->tp_itemsize) { in extra_ivars()
2225 type->tp_itemsize != base->tp_itemsize; in extra_ivars()
2680 if (ctx->nslot > 0 && ctx->base->tp_itemsize != 0) { in type_new_slots_impl()
2714 && ctx->base->tp_itemsize == 0); in type_new_slots()
2977 if (ctx->base->tp_itemsize) { in type_new_descriptors()
2987 assert(!ctx->base->tp_itemsize); in type_new_descriptors()
2993 type->tp_itemsize = ctx->base->tp_itemsize; in type_new_descriptors()
3500 type->tp_itemsize = spec->itemsize; in PyType_FromModuleAndSpec()
[all …]
Dstructseq.c487 type->tp_itemsize = sizeof(PyObject *); in _PyStructSequence_InitType()
Dexceptions.c2967 caught_type->tp_itemsize != _PyExc_BaseException.tp_itemsize) { in _PyErr_TrySetFromCause()
/third_party/python/Doc/c-api/
Dallocation.rst44 plus *size* fields of the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of
Dtypeobj.rst48 …| :c:member:`~PyTypeObject.tp_itemsize` | Py_ssize_t | …
481 metatype) initializes :c:member:`~PyTypeObject.tp_itemsize`, which means that its instances (i.e.
595 :c:member:`~PyTypeObject.tp_itemsize`).
603 Py_ssize_t PyTypeObject.tp_itemsize
608 :c:member:`~PyTypeObject.tp_itemsize` field, types with variable-length instances have a non-zero
609 :c:member:`~PyTypeObject.tp_itemsize` field. For a type with fixed-length instances, all
614 times :c:member:`~PyTypeObject.tp_itemsize`, where N is the "length" of the object. The value of
633 suppose a type implements an array of ``double``. :c:member:`~PyTypeObject.tp_itemsize` is
643 non-zero :c:member:`~PyTypeObject.tp_itemsize`, it is generally not safe to set
644 :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a subtype (though this
[all …]
Dtype.rst213 :c:member:`PyTypeObject.tp_itemsize`.
/third_party/python/Doc/extending/
Dnewtypes_tutorial.rst95 .tp_itemsize = 0,
136 .tp_itemsize = 0,
139 new :class:`Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is
Dnewtypes.rst37 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */
41 structures (think: strings, tuples) which is where the :c:member:`~PyTypeObject.tp_itemsize` field
/third_party/python/Modules/
D_asynciomodule.c1763 .tp_itemsize = 0,
1880 .tp_itemsize = 0,
/third_party/python/Python/
Dhamt.c2600 .tp_itemsize = 0, \
/third_party/python/patches/
Dcpython_mingw_v3.10.2.patch2697 0, /* tp_itemsize */