Searched refs:ob_size (Results 1 – 15 of 15) sorted by relevance
/external/python/cpython3/Include/ |
D | object.h | 117 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()
|
/external/python/cpython2/Doc/c-api/ |
D | structures.rst | 31 This is an extension of :c:type:`PyObject` that adds the :attr:`ob_size` 66 Py_ssize_t ob_size; 95 This macro is used to access the :attr:`ob_size` member of a Python object. 98 (((PyVarObject*)(o))->ob_size) 115 :c:type:`PyVarObject` type, including the :attr:`ob_size` field.
|
D | typeobj.rst | 36 :attr:`ob_size` field is used for dynamic types (created by :func:`type_new`, 39 type objects) *must* have the :attr:`ob_size` field. 95 .. c:member:: Py_ssize_t PyVarObject.ob_size 142 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N 144 N is typically stored in the instance's :attr:`ob_size` field. There are 145 exceptions: for example, long ints use a negative :attr:`ob_size` to indicate a 146 negative number, and N is ``abs(ob_size)`` there. Also, the presence of an 147 :attr:`ob_size` field in the instance layout doesn't mean that the instance 149 fixed-length instances, yet those instances have a meaningful :attr:`ob_size` 907 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset [all …]
|
/external/python/cpython2/Tools/gdb/ |
D | libpython.py | 799 ob_size = long(self.field('ob_size')) 800 if ob_size == 0: 811 for i in safe_range(abs(ob_size))] 813 if ob_size < 0:
|
/external/python/cpython2/Include/ |
D | object.h | 98 Py_ssize_t ob_size; /* Number of items in variable part */ 116 #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
|
/external/python/cpython3/Tools/gdb/ |
D | libpython.py | 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:
|
/external/python/cpython3/Misc/ |
D | gdbinit | 60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
|
/external/python/cpython2/Misc/ |
D | gdbinit | 54 set $__sz = ((PyStringObject *)$__co->co_lnotab)->ob_size/2
|
/external/python/cpython3/Doc/c-api/ |
D | typeobj.rst | 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_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 …]
|
D | structures.rst | 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.
|
/external/python/cpython2/Objects/ |
D | object.c | 234 op->ob_size = size; in PyObject_InitVar() 1296 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GetDictPtr() 1418 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GenericGetAttrWithDict()
|
/external/python/cpython3/Modules/_decimal/ |
D | _decimal.c | 2120 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()
|
/external/python/cpython3/Modules/ |
D | arraymodule.c | 2586 view->shape = &((PyVarObject*)self)->ob_size; in array_buffer_getbuf()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0a1.rst | 1434 Remove some redundant assignments to ob_size in longobject.c. Thanks Oren
|
/external/python/cpython3/Doc/data/ |
D | python3.10.abi | 2666 …<var-decl name='ob_size' type-id='type-id-31' visibility='default' filepath='./Include/object.h' l…
|