Searched refs:ob_size (Results 1 – 14 of 14) sorted by relevance
/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/cpython3/Doc/c-api/ |
D | structures.rst | 33 This is an extension of :c:type:`PyObject` that adds the :attr:`ob_size` 80 This macro is used to access the :attr:`ob_size` member of a Python object. 83 (((PyVarObject*)(o))->ob_size) 98 :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. 89 .. c:member:: Py_ssize_t PyVarObject.ob_size 136 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N 138 N is typically stored in the instance's :attr:`ob_size` field. There are 139 exceptions: for example, ints use a negative :attr:`ob_size` to indicate a 140 negative number, and N is ``abs(ob_size)`` there. Also, the presence of an 141 :attr:`ob_size` field in the instance layout doesn't mean that the instance 143 fixed-length instances, yet those instances have a meaningful :attr:`ob_size` 822 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/Include/ |
D | object.h | 114 Py_ssize_t ob_size; /* Number of items in variable part */ member 119 #define Py_SIZE(ob) (((PyVarObject*)(ob))->ob_size)
|
/external/python/cpython3/Tools/gdb/ |
D | libpython.py | 801 ob_size = long(self.field('ob_size')) 802 if ob_size == 0: 813 for i in safe_range(abs(ob_size))] 815 if ob_size < 0:
|
/external/python/cpython3/Misc/ |
D | gdbinit | 54 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/Objects/ |
D | object.c | 245 op->ob_size = size; in PyObject_InitVar() 1062 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GetDictPtr() 1252 tsize = ((PyVarObject *)obj)->ob_size; in _PyObject_GenericGetAttrWithDict()
|
/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 | 1976 Py_ssize_t ob_size; in dec_from_long() local 1985 ob_size = Py_SIZE(l); in dec_from_long() 1986 if (ob_size == 0) { in dec_from_long() 1991 if (ob_size < 0) { in dec_from_long() 1992 len = -ob_size; in dec_from_long() 1996 len = ob_size; in dec_from_long()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0a1.rst | 1435 Remove some redundant assignments to ob_size in longobject.c. Thanks Oren
|