Home
last modified time | relevance | path

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

/third_party/python/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 …]
/third_party/python/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 …]
/third_party/boost/boost/python/detail/
Dwrap_python.hpp217 # define PyObject_INIT(op, typeobj) \ argument
218 ( (op)->ob_type = (typeobj), _Py_NewReference((PyObject *)(op)), (op) )
/third_party/python/Doc/c-api/
Dobjimpl.rst16 typeobj.rst
/third_party/python/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)
/third_party/boost/libs/python/src/numpy/
Ddtype.cpp150 return reinterpret_cast<PyArray_Descr*>(dtype::get_builtin<T>().ptr())->typeobj; in get_pytype()
/third_party/python/Lib/unittest/
Dcase.py390 def addTypeEqualityFunc(self, typeobj, function): argument
403 self._type_equality_funcs[typeobj] = function
/third_party/python/Doc/library/
Dunittest.rst1238 .. method:: addTypeEqualityFunc(typeobj, function)
1241 if two objects of exactly the same *typeobj* (not subclasses) compare