/external/python/cpython3/Include/ |
D | objimpl.h | 136 #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/ |
D | objimpl.h | 156 #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/ |
D | objimpl.rst | 16 typeobj.rst
|
/external/python/cpython2/Doc/c-api/ |
D | objimpl.rst | 17 typeobj.rst
|
/external/python/cpython2/Tools/gdb/ |
D | libpython.py | 448 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/ |
D | libpython.py | 476 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/ |
D | case.py | 208 def addTypeEqualityFunc(self, typeobj, function): argument 221 self._type_equality_funcs[typeobj] = function
|
/external/python/cpython3/Lib/unittest/ |
D | case.py | 430 def addTypeEqualityFunc(self, typeobj, function): argument 443 self._type_equality_funcs[typeobj] = function
|
/external/python/cpython2/Doc/library/ |
D | unittest.rst | 1095 .. method:: addTypeEqualityFunc(typeobj, function) 1098 if two objects of exactly the same *typeobj* (not subclasses) compare
|
/external/python/cpython3/Doc/library/ |
D | unittest.rst | 1229 .. method:: addTypeEqualityFunc(typeobj, function) 1232 if two objects of exactly the same *typeobj* (not subclasses) compare
|