Home
last modified time | relevance | path

Searched refs:ob_item (Results 1 – 25 of 37) sorted by relevance

12

/third_party/python/Modules/
Darraymodule.c42 char *ob_item; member
130 self->ob_item != NULL) { in array_resize()
136 PyMem_FREE(self->ob_item); in array_resize()
137 self->ob_item = NULL; in array_resize()
156 items = self->ob_item; in array_resize()
167 self->ob_item = items; in array_resize()
188 long x = ((signed char *)ap->ob_item)[i]; in b_getitem()
212 ((char *)ap->ob_item)[i] = (char)x; in b_setitem()
219 long x = ((unsigned char *)ap->ob_item)[i]; in BB_getitem()
231 ((char *)ap->ob_item)[i] = x; in BB_setitem()
[all …]
/third_party/python/Objects/
Dtupleobject.c75 free_list[size] = (PyTupleObject *) op->ob_item[0]; in tuple_alloc()
115 op->ob_item[i] = NULL; in PyTuple_New()
150 return ((PyTupleObject *)op) -> ob_item[i]; in PyTuple_GetItem()
168 p = ((PyTupleObject *)op) -> ob_item + i; in PyTuple_SetItem()
213 items = result->ob_item; in PyTuple_Pack()
237 Py_XDECREF(op->ob_item[i]); in tupledealloc()
243 op->ob_item[0] = (PyObject *) free_list[len]; in tupledealloc()
299 s = PyObject_Repr(v->ob_item[i]); in tuplerepr()
363 PyObject **item = v->ob_item; in tuplehash()
409 Py_INCREF(a->ob_item[i]); in tupleitem()
[all …]
Dlistobject.c47 assert(self->ob_item != NULL || newsize == 0); in list_resize()
72 items = (PyObject **)PyMem_Realloc(self->ob_item, num_allocated_bytes); in list_resize()
77 self->ob_item = items; in list_resize()
86 assert(self->ob_item == NULL); in list_preallocate_exact()
94 self->ob_item = items; in list_preallocate_exact()
151 op->ob_item = NULL; in PyList_New()
153 op->ob_item = (PyObject **) PyMem_Calloc(size, sizeof(PyObject *)); in PyList_New()
154 if (op->ob_item == NULL) { in PyList_New()
172 assert(op->ob_item == NULL); in list_new_prealloc()
173 op->ob_item = PyMem_New(PyObject *, size); in list_new_prealloc()
[all …]
Dstructseq.c52 obj->ob_item[i] = NULL; in PyStructSequence_New()
79 Py_VISIT(obj->ob_item[i]); in structseq_traverse()
94 Py_XDECREF(obj->ob_item[i]); in structseq_dealloc()
178 res->ob_item[i] = v; in structseq_new_impl()
188 res->ob_item[i] = ob; in structseq_new_impl()
293 tup = _PyTuple_FromArray(self->ob_item, n_visible_fields); in structseq_reduce()
303 if (PyDict_SetItemString(dict, n, self->ob_item[i]) < 0) in structseq_reduce()
376 members[k].offset = offsetof(PyStructSequence, ob_item) in initialize_members()
/third_party/python/Include/cpython/
Dlistobject.h12 PyObject **ob_item; member
36 #define PyList_GET_ITEM(op, i) (_PyList_CAST(op)->ob_item[i])
37 #define PyList_SET_ITEM(op, i, v) (_PyList_CAST(op)->ob_item[i] = (v))
39 #define _PyList_ITEMS(op) (_PyList_CAST(op)->ob_item)
Dtupleobject.h14 PyObject *ob_item[1]; member
27 #define PyTuple_GET_ITEM(op, i) (_PyTuple_CAST(op)->ob_item[i])
30 #define PyTuple_SET_ITEM(op, i, v) (_PyTuple_CAST(op)->ob_item[i] = v)
/third_party/python/Modules/clinic/
Ditertoolsmodule.c.h34 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in itertools_groupby()
354 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 2… in itertools_combinations()
407 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 2… in itertools_combinations_with_replacement()
460 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in itertools_permutations()
500 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in itertools_accumulate()
550 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 2… in itertools_compress()
625 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in itertools_count()
D_datetimemodule.c.h34 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 3, 3… in iso_calendar_date_new()
D_pickle.c.h120 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 4… in _pickle_Pickler___init__()
341 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1… in _pickle_Unpickler___init__()
/third_party/python/Objects/clinic/
Ddescrobject.c.h19 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 1… in mappingproxy_new()
86 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 4… in property_init()
Dstructseq.c.h21 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in structseq_new()
Dcomplexobject.c.h29 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in complex_new()
Dmoduleobject.c.h29 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in module___init__()
Denumobject.c.h36 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in enum_new()
Dfuncobject.c.h42 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 5… in func_new()
Dlongobject.c.h21 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in long_new()
/third_party/python/Include/internal/
Dpycore_tupleobject.h13 #define _PyTuple_ITEMS(op) (_PyTuple_CAST(op)->ob_item)
/third_party/python/Python/clinic/
Dtraceback.c.h29 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 4, 4… in tb_new()
/third_party/python/Modules/_io/clinic/
Dbufferedio.c.h429 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedReader___init__()
488 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedWriter___init__()
644 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 2… in _io_BufferedRandom___init__()
Dtextio.c.h37 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 2, 3… in _io_IncrementalNewlineDecoder___init__()
208 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 1, 6… in _io_TextIOWrapper___init__()
Dstringio.c.h277 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 2… in _io_StringIO___init__()
/third_party/python/Modules/_sha3/clinic/
Dsha3module.c.h27 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in py_sha3_new()
/third_party/python/Include/
Dabstract.h707 (PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
708 : ((PyTupleObject *)(sf))->ob_item)
/third_party/python/Modules/_blake2/clinic/
Dblake2b_impl.c.h45 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in py_blake2b_new()
Dblake2s_impl.c.h45 …fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1… in py_blake2s_new()

12