Lines Matching refs:PyTupleObject
29 static PyTupleObject *free_list[PyTuple_MAXSAVESIZE];
34 tuple_gc_track(PyTupleObject *op) in tuple_gc_track()
64 static PyTupleObject *
67 PyTupleObject *op; in tuple_alloc()
75 free_list[size] = (PyTupleObject *) op->ob_item[0]; in tuple_alloc()
88 if ((size_t)size > ((size_t)PY_SSIZE_T_MAX - (sizeof(PyTupleObject) - in tuple_alloc()
90 return (PyTupleObject *)PyErr_NoMemory(); in tuple_alloc()
92 op = PyObject_GC_NewVar(PyTupleObject, &PyTuple_Type, size); in tuple_alloc()
102 PyTupleObject *op; in PyTuple_New()
150 return ((PyTupleObject *)op) -> ob_item[i]; in PyTuple_GetItem()
168 p = ((PyTupleObject *)op) -> ob_item + i; in PyTuple_SetItem()
176 PyTupleObject *t; in _PyTuple_MaybeUntrack()
181 t = (PyTupleObject *) op; in _PyTuple_MaybeUntrack()
208 PyTupleObject *result = tuple_alloc(n); in PyTuple_Pack()
228 tupledealloc(PyTupleObject *op) in tupledealloc()
258 tuplerepr(PyTupleObject *v) in tuplerepr()
360 tuplehash(PyTupleObject *v) in tuplehash()
386 tuplelength(PyTupleObject *a) in tuplelength()
392 tuplecontains(PyTupleObject *a, PyObject *el) in tuplecontains()
403 tupleitem(PyTupleObject *a, Py_ssize_t i) in tupleitem()
420 PyTupleObject *tuple = tuple_alloc(n); in _PyTuple_FromArray()
435 tupleslice(PyTupleObject *a, Py_ssize_t ilow, in tupleslice()
458 return tupleslice((PyTupleObject *)op, i, j); in PyTuple_GetSlice()
462 tupleconcat(PyTupleObject *a, PyObject *bb) in tupleconcat()
467 PyTupleObject *np; in tupleconcat()
478 #define b ((PyTupleObject *)bb) in tupleconcat()
514 tuplerepeat(PyTupleObject *a, Py_ssize_t n) in tuplerepeat()
518 PyTupleObject *np; in tuplerepeat()
564 tuple_index_impl(PyTupleObject *self, PyObject *value, Py_ssize_t start, in tuple_index_impl()
602 tuple_count(PyTupleObject *self, PyObject *value) in tuple_count()
619 tupletraverse(PyTupleObject *o, visitproc visit, void *arg) in tupletraverse()
631 PyTupleObject *vt, *wt; in tuplerichcompare()
638 vt = (PyTupleObject *)v; in tuplerichcompare()
639 wt = (PyTupleObject *)w; in tuplerichcompare()
767 tuplesubscript(PyTupleObject* self, PyObject* item) in tuplesubscript()
799 PyTupleObject* result = tuple_alloc(slicelength); in tuplesubscript()
828 tuple___getnewargs___impl(PyTupleObject *self) in tuple___getnewargs___impl()
853 sizeof(PyTupleObject) - sizeof(PyObject *),
904 PyTupleObject *v; in _PyTuple_Resize()
905 PyTupleObject *sv; in _PyTuple_Resize()
909 v = (PyTupleObject *) *pv; in _PyTuple_Resize()
944 sv = PyObject_GC_Resize(PyTupleObject, v, newsize); in _PyTuple_Resize()
965 PyTupleObject *p = free_list[i]; in _PyTuple_ClearFreeList()
969 PyTupleObject *q = p; in _PyTuple_ClearFreeList()
970 p = (PyTupleObject *)(p->ob_item[0]); in _PyTuple_ClearFreeList()
995 PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */
1016 PyTupleObject *seq; in tupleiter_next()
1132 it->it_seq = (PyTupleObject *)seq; in tuple_iter()