Home
last modified time | relevance | path

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

/external/python/cpython3/Include/
Dobject.h117 Py_ssize_t ob_size; /* Number of items in variable part */ member
125 #define Py_SIZE(ob) (_PyVarObject_CAST(ob)->ob_size)
143 ob->ob_size = size; in _Py_SET_SIZE()
/external/python/cpython2/Doc/c-api/
Dstructures.rst31 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.
Dtypeobj.rst36 :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/
Dstructures.rst37 This is an extension of :c:type:`PyObject` that adds the :attr:`ob_size`
106 This macro is used to access the :attr:`ob_size` member of a Python object.
109 (((PyVarObject*)(o))->ob_size)
131 :c:type:`PyVarObject` type, including the :attr:`ob_size` field.
Dtypeobj.rst477 :attr:`ob_size` field is used for dynamic types (created by :func:`type_new`,
480 type objects) *must* have the :attr:`ob_size` field.
539 .. c:member:: Py_ssize_t PyVarObject.ob_size
602 :attr:`ob_size` field, and the instance size is :c:member:`~PyTypeObject.tp_basicsize` plus N
604 N is typically stored in the instance's :attr:`ob_size` field. There are
605 exceptions: for example, ints use a negative :attr:`ob_size` to indicate a
606 negative number, and N is ``abs(ob_size)`` there. Also, the presence of an
607 :attr:`ob_size` field in the instance layout doesn't mean that the instance
609 fixed-length instances, yet those instances have a meaningful :attr:`ob_size`
1616 dictoffset = tp_basicsize + abs(ob_size)*tp_itemsize + tp_dictoffset
[all …]
/external/python/cpython2/Tools/gdb/
Dlibpython.py799 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/
Dobject.h98 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/
Dlibpython.py803 ob_size = long(self.field('ob_size'))
804 if ob_size == 0:
815 for i in safe_range(abs(ob_size))]
817 if ob_size < 0:
/external/python/cpython2/Misc/
Dgdbinit54 set $__sz = ((PyStringObject *)$__co->co_lnotab)->ob_size/2
/external/python/cpython3/Misc/
Dgdbinit60 set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
/external/python/cpython2/Objects/
Dobject.c234 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.c2121 Py_ssize_t ob_size; in dec_from_long() local
2130 ob_size = Py_SIZE(l); in dec_from_long()
2131 if (ob_size == 0) { in dec_from_long()
2136 if (ob_size < 0) { in dec_from_long()
2137 len = -ob_size; in dec_from_long()
2141 len = ob_size; in dec_from_long()
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a1.rst1434 Remove some redundant assignments to ob_size in longobject.c. Thanks Oren