Searched refs:ob_size (Results 1 – 8 of 8) sorted by relevance
117 Py_ssize_t ob_size; /* Number of items in variable part */ member140 #define Py_SIZE(ob) (_PyVarObject_CAST(ob)->ob_size)164 ob->ob_size = size; in _Py_SET_SIZE()
812 ob_size = long(self.field('ob_size'))813 if ob_size == 0:824 for i in safe_range(abs(ob_size))]826 if ob_size < 0:
479 :attr:`ob_size` field is used for dynamic types (created by :func:`type_new`,482 type objects) *must* have the :attr:`ob_size` field.547 .. c:member:: Py_ssize_t PyVarObject.ob_size613 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N615 N is typically stored in the instance's :attr:`ob_size` field. There are616 exceptions: for example, ints use a negative :attr:`ob_size` to indicate a617 negative number, and N is ``abs(ob_size)`` there. Also, the presence of an618 :attr:`ob_size` field in the instance layout doesn't mean that the instance620 fixed-length instances, yet those instances have a meaningful :attr:`ob_size`1720 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset[all …]
37 This is an extension of :c:type:`PyObject` that adds the :attr:`ob_size`162 :c:type:`PyVarObject` type, including the :attr:`ob_size` field.
60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
2120 Py_ssize_t ob_size; in dec_from_long() local2129 ob_size = Py_SIZE(l); in dec_from_long()2130 if (ob_size == 0) { in dec_from_long()2135 if (ob_size < 0) { in dec_from_long()2136 len = -ob_size; in dec_from_long()2140 len = ob_size; in dec_from_long()
2586 view->shape = &((PyVarObject*)self)->ob_size; in array_buffer_getbuf()
1434 Remove some redundant assignments to ob_size in longobject.c. Thanks Oren