Home
last modified time | relevance | path

Searched refs:typeobj (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython3/Include/cpython/
Dobjimpl.h9 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) argument
25 #define _PyObject_VAR_SIZE(typeobj, nitems) \ argument
26 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
27 (nitems)*(typeobj)->tp_itemsize, \
65 _PyObject_INIT(PyObject *op, PyTypeObject *typeobj) in _PyObject_INIT() argument
68 Py_SET_TYPE(op, typeobj); in _PyObject_INIT()
69 if (PyType_GetFlags(typeobj) & Py_TPFLAGS_HEAPTYPE) { in _PyObject_INIT()
70 Py_INCREF(typeobj); in _PyObject_INIT()
76 #define PyObject_INIT(op, typeobj) \ argument
77 _PyObject_INIT(_PyObject_CAST(op), (typeobj))
[all …]
/external/python/cpython3/Include/
Dobjimpl.h125 #define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj)) argument
129 #define PyObject_NEW(type, typeobj) PyObject_New(type, typeobj) argument
131 #define PyObject_NewVar(type, typeobj, n) \ argument
132 ( (type *) _PyObject_NewVar((typeobj), (n)) )
136 #define PyObject_NEW_VAR(type, typeobj, n) PyObject_NewVar(type, typeobj, n) argument
143 # define PyObject_INIT(op, typeobj) \ argument
144 PyObject_Init(_PyObject_CAST(op), (typeobj))
145 # define PyObject_INIT_VAR(op, typeobj, size) \ argument
146 PyObject_InitVar(_PyVarObject_CAST(op), (typeobj), (size))
184 #define PyObject_GC_New(type, typeobj) \ argument
[all …]
/external/python/cpython2/Include/
Dobjimpl.h156 #define PyObject_New(type, typeobj) \ argument
157 ( (type *) _PyObject_New(typeobj) )
158 #define PyObject_NewVar(type, typeobj, n) \ argument
159 ( (type *) _PyObject_NewVar((typeobj), (n)) )
163 #define PyObject_INIT(op, typeobj) \ argument
164 ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
165 #define PyObject_INIT_VAR(op, typeobj, size) \ argument
166 ( Py_SIZE(op) = (size), PyObject_INIT((op), (typeobj)) )
168 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) argument
184 #define _PyObject_VAR_SIZE(typeobj, nitems) \ argument
[all …]
/external/python/cpython2/Doc/c-api/
Dobjimpl.rst17 typeobj.rst
/external/python/cpython3/Doc/c-api/
Dobjimpl.rst16 typeobj.rst
/external/python/cpython2/Tools/gdb/
Dlibpython.py448 def _PyObject_VAR_SIZE(typeobj, nitems): argument
452 return ( ( typeobj.field('tp_basicsize') +
453 nitems * typeobj.field('tp_itemsize') +
468 typeobj = self.type()
469 dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
476 size = _PyObject_VAR_SIZE(typeobj, tsize)
/external/python/cpython3/Tools/gdb/
Dlibpython.py478 def _PyObject_VAR_SIZE(typeobj, nitems): argument
482 return ( ( typeobj.field('tp_basicsize') +
483 nitems * typeobj.field('tp_itemsize') +
498 typeobj = self.type()
499 dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
506 size = _PyObject_VAR_SIZE(typeobj, tsize)
/external/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/
Dcase.py259 def addTypeEqualityFunc(self, typeobj, function): argument
272 self._type_equality_funcs[typeobj] = function
/external/python/cpython2/Lib/unittest/
Dcase.py208 def addTypeEqualityFunc(self, typeobj, function): argument
221 self._type_equality_funcs[typeobj] = function
/external/python/cpython3/Lib/unittest/
Dcase.py390 def addTypeEqualityFunc(self, typeobj, function): argument
403 self._type_equality_funcs[typeobj] = function
/external/tensorflow/tensorflow/python/lib/core/
Dbfloat16.cc1324 bfloat16_type_ptr = descr->typeobj; in Initialize()
/external/python/pybind11/include/pybind11/
Dnumpy.h53 PyObject *typeobj; member
/external/python/cpython2/Doc/library/
Dunittest.rst1095 .. method:: addTypeEqualityFunc(typeobj, function)
1098 if two objects of exactly the same *typeobj* (not subclasses) compare
/external/python/cpython3/Doc/library/
Dunittest.rst1238 .. method:: addTypeEqualityFunc(typeobj, function)
1241 if two objects of exactly the same *typeobj* (not subclasses) compare