Home
last modified time | relevance | path

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

/external/python/cpython3/Include/
Dobjimpl.h136 #define PyObject_New(type, typeobj) \ argument
137 ( (type *) _PyObject_New(typeobj) )
138 #define PyObject_NewVar(type, typeobj, n) \ argument
139 ( (type *) _PyObject_NewVar((typeobj), (n)) )
143 #define PyObject_INIT(op, typeobj) \ argument
144 ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
145 #define PyObject_INIT_VAR(op, typeobj, size) \ argument
146 ( Py_SIZE(op) = (size), PyObject_INIT((op), (typeobj)) )
148 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) argument
164 #define _PyObject_VAR_SIZE(typeobj, nitems) \ 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/cpython3/Doc/c-api/
Dobjimpl.rst16 typeobj.rst
/external/python/cpython2/Doc/c-api/
Dobjimpl.rst17 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.py476 def _PyObject_VAR_SIZE(typeobj, nitems): argument
480 return ( ( typeobj.field('tp_basicsize') +
481 nitems * typeobj.field('tp_itemsize') +
496 typeobj = self.type()
497 dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
504 size = _PyObject_VAR_SIZE(typeobj, tsize)
/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.py430 def addTypeEqualityFunc(self, typeobj, function): argument
443 self._type_equality_funcs[typeobj] = function
/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.rst1229 .. method:: addTypeEqualityFunc(typeobj, function)
1232 if two objects of exactly the same *typeobj* (not subclasses) compare