Home
last modified time | relevance | path

Searched refs:ob_size (Results 1 – 8 of 8) sorted by relevance

/third_party/python/Include/
Dobject.h117 Py_ssize_t ob_size; /* Number of items in variable part */ member
140 #define Py_SIZE(ob) (_PyVarObject_CAST(ob)->ob_size)
164 ob->ob_size = size; in _Py_SET_SIZE()
/third_party/python/Tools/gdb/
Dlibpython.py812 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:
/third_party/python/Doc/c-api/
Dtypeobj.rst479 :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_size
613 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N
615 N is typically stored in the instance's :attr:`ob_size` field. There are
616 exceptions: for example, ints use a negative :attr:`ob_size` to indicate a
617 negative number, and N is ``abs(ob_size)`` there. Also, the presence of an
618 :attr:`ob_size` field in the instance layout doesn't mean that the instance
620 fixed-length instances, yet those instances have a meaningful :attr:`ob_size`
1720 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
[all …]
Dstructures.rst37 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.
/third_party/python/Misc/
Dgdbinit60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
/third_party/python/Modules/_decimal/
D_decimal.c2120 Py_ssize_t ob_size; in dec_from_long() local
2129 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()
/third_party/python/Modules/
Darraymodule.c2586 view->shape = &((PyVarObject*)self)->ob_size; in array_buffer_getbuf()
/third_party/python/Misc/NEWS.d/
D3.7.0a1.rst1434 Remove some redundant assignments to ob_size in longobject.c. Thanks Oren