Searched refs:typeobj (Results 1 – 9 of 9) sorted by relevance
/third_party/python/Include/ |
D | objimpl.h | 125 #define PyObject_INIT(op, typeobj) \ argument 126 PyObject_Init(_PyObject_CAST(op), (typeobj)) 127 #define PyObject_INIT_VAR(op, typeobj, size) \ argument 128 PyObject_InitVar(_PyVarObject_CAST(op), (typeobj), (size)) 134 #define PyObject_New(type, typeobj) ((type *)_PyObject_New(typeobj)) argument 138 #define PyObject_NEW(type, typeobj) PyObject_New(type, typeobj) argument 140 #define PyObject_NewVar(type, typeobj, n) \ argument 141 ( (type *) _PyObject_NewVar((typeobj), (n)) ) 145 #define PyObject_NEW_VAR(type, typeobj, n) PyObject_NewVar(type, typeobj, n) argument 184 #define PyObject_GC_New(type, typeobj) \ argument [all …]
|
/third_party/python/Include/cpython/ |
D | objimpl.h | 5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize ) argument 21 #define _PyObject_VAR_SIZE(typeobj, nitems) \ argument 22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \ 23 (nitems)*(typeobj)->tp_itemsize, \
|
/third_party/python/Include/internal/ |
D | pycore_object.h | 41 _PyObject_Init(PyObject *op, PyTypeObject *typeobj) in _PyObject_Init() argument 44 Py_SET_TYPE(op, typeobj); in _PyObject_Init() 45 if (_PyType_HasFeature(typeobj, Py_TPFLAGS_HEAPTYPE)) { in _PyObject_Init() 46 Py_INCREF(typeobj); in _PyObject_Init() 52 _PyObject_InitVar(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size) in _PyObject_InitVar() argument 56 _PyObject_Init((PyObject *)op, typeobj); in _PyObject_InitVar()
|
/third_party/boost/boost/python/detail/ |
D | wrap_python.hpp | 217 # define PyObject_INIT(op, typeobj) \ argument 218 ( (op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
|
/third_party/python/Doc/c-api/ |
D | objimpl.rst | 16 typeobj.rst
|
/third_party/python/Tools/gdb/ |
D | libpython.py | 478 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)
|
/third_party/boost/libs/python/src/numpy/ |
D | dtype.cpp | 150 return reinterpret_cast<PyArray_Descr*>(dtype::get_builtin<T>().ptr())->typeobj; in get_pytype()
|
/third_party/python/Lib/unittest/ |
D | case.py | 389 def addTypeEqualityFunc(self, typeobj, function): argument 402 self._type_equality_funcs[typeobj] = function
|
/third_party/python/Doc/library/ |
D | unittest.rst | 1263 .. method:: addTypeEqualityFunc(typeobj, function) 1266 if two objects of exactly the same *typeobj* (not subclasses) compare
|