Searched refs:tp_itemsize (Results 1 – 19 of 19) sorted by relevance
/third_party/python/Doc/includes/ |
D | custom.c | 14 .tp_itemsize = 0,
|
D | typestruct.h | 4 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
|
D | sublist.c | 36 .tp_itemsize = 0,
|
D | custom2.c | 103 .tp_itemsize = 0,
|
D | custom3.c | 153 .tp_itemsize = 0,
|
D | custom4.c | 165 .tp_itemsize = 0,
|
/third_party/python/Include/cpython/ |
D | objimpl.h | 23 (nitems)*(typeobj)->tp_itemsize, \
|
D | object.h | 194 Py_ssize_t tp_basicsize, tp_itemsize; /* For allocation */ member
|
/third_party/python/Objects/ |
D | typeobject.c | 449 {"__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 …]
|
D | structseq.c | 487 type->tp_itemsize = sizeof(PyObject *); in _PyStructSequence_InitType()
|
D | exceptions.c | 2967 caught_type->tp_itemsize != _PyExc_BaseException.tp_itemsize) { in _PyErr_TrySetFromCause()
|
/third_party/python/Doc/c-api/ |
D | allocation.rst | 44 plus *size* fields of the size given by the :c:member:`~PyTypeObject.tp_itemsize` field of
|
D | typeobj.rst | 48 …| :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 …]
|
D | type.rst | 213 :c:member:`PyTypeObject.tp_itemsize`.
|
/third_party/python/Doc/extending/ |
D | newtypes_tutorial.rst | 95 .tp_itemsize = 0, 136 .tp_itemsize = 0, 139 new :class:`Custom` instances. :c:member:`~PyTypeObject.tp_itemsize` is
|
D | newtypes.rst | 37 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.c | 1763 .tp_itemsize = 0, 1880 .tp_itemsize = 0,
|
/third_party/python/Python/ |
D | hamt.c | 2600 .tp_itemsize = 0, \
|
/third_party/python/patches/ |
D | cpython_mingw_v3.10.2.patch | 2697 0, /* tp_itemsize */
|