Home
last modified time | relevance | path

Searched refs:typeobj (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Include/
H A Dobjimpl.h29 - PyObject_New(type, typeobj) allocates memory for a new object of the given
31 to represent the object, and 'typeobj' the address of the corresponding
37 - PyObject_NewVar(type, typeobj, n) is similar but allocates a variable-size
44 - PyObject_Init(op, typeobj) and PyObject_InitVar(op, typeobj, n) don't
125 #define PyObject_INIT(op, typeobj) \
126 PyObject_Init(_PyObject_CAST(op), (typeobj))
127 #define PyObject_INIT_VAR(op, typeobj, size) \
128 PyObject_InitVar(_PyVarObject_CAST(op), (typeobj), (size))
134 #define PyObject_New(type, typeobj) ((typ
[all...]
/third_party/python/Include/cpython/
H A Dobjimpl.h5 #define _PyObject_SIZE(typeobj) ( (typeobj)->tp_basicsize )
21 #define _PyObject_VAR_SIZE(typeobj, nitems) \
22 _Py_SIZE_ROUND_UP((typeobj)->tp_basicsize + \
23 (nitems)*(typeobj)->tp_itemsize, \
/third_party/python/Include/internal/
H A Dpycore_object.h89 _PyObject_Init(PyObject *op, PyTypeObject *typeobj) in _PyObject_Init() argument
92 Py_SET_TYPE(op, typeobj); in _PyObject_Init()
93 if (_PyType_HasFeature(typeobj, Py_TPFLAGS_HEAPTYPE)) { in _PyObject_Init()
94 Py_INCREF(typeobj); in _PyObject_Init()
100 _PyObject_InitVar(PyVarObject *op, PyTypeObject *typeobj, Py_ssize_t size) in _PyObject_InitVar() argument
104 _PyObject_Init((PyObject *)op, typeobj); in _PyObject_InitVar()
/third_party/python/Tools/gdb/
H A Dlibpython.py457 def _PyObject_VAR_SIZE(typeobj, nitems):
461 return ( ( typeobj.field('tp_basicsize') +
462 nitems * typeobj.field('tp_itemsize') +
477 typeobj = self.type()
478 dictoffset = int_from_int(typeobj.field('tp_dictoffset'))
485 size = _PyObject_VAR_SIZE(typeobj, tsize)
501 typeobj = self.type()
502 has_values = int_from_int(typeobj.field('tp_flags')) & Py_TPFLAGS_MANAGED_DICT
514 typeobj = self.type()
516 return typeobj
[all...]
/third_party/python/Lib/unittest/
H A Dcase.py425 def addTypeEqualityFunc(self, typeobj, function):
432 typeobj: The data type to call this function on when both values
438 self._type_equality_funcs[typeobj] = function

Completed in 5 milliseconds