Lines Matching refs:Py_SIZE
176 return Py_SIZE(op); in PyTuple_Size()
186 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_GetItem()
202 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_SetItem()
222 n = Py_SIZE(t); in _PyTuple_MaybeUntrack()
270 Py_ssize_t len = Py_SIZE(op); in tupledealloc()
309 n = Py_SIZE(v); in tuplerepr()
324 if (Py_SIZE(v) > 1) { in tuplerepr()
326 writer.min_length = 1 + 1 + (2 + 1) * (Py_SIZE(v) - 1) + 1; in tuplerepr()
408 Py_ssize_t i, len = Py_SIZE(v); in tuplehash()
434 return Py_SIZE(a); in tuplelength()
443 for (i = 0, cmp = 0 ; cmp == 0 && i < Py_SIZE(a); ++i) in tuplecontains()
451 if (i < 0 || i >= Py_SIZE(a)) { in tupleitem()
486 if (ihigh > Py_SIZE(a)) in tupleslice()
487 ihigh = Py_SIZE(a); in tupleslice()
490 if (ilow == 0 && ihigh == Py_SIZE(a) && PyTuple_CheckExact(a)) { in tupleslice()
514 if (Py_SIZE(a) == 0 && PyTuple_CheckExact(bb)) { in tupleconcat()
526 if (Py_SIZE(b) == 0 && PyTuple_CheckExact(a)) { in tupleconcat()
530 assert((size_t)Py_SIZE(a) + (size_t)Py_SIZE(b) < PY_SSIZE_T_MAX); in tupleconcat()
531 size = Py_SIZE(a) + Py_SIZE(b); in tupleconcat()
542 for (i = 0; i < Py_SIZE(a); i++) { in tupleconcat()
548 dest = np->ob_item + Py_SIZE(a); in tupleconcat()
549 for (i = 0; i < Py_SIZE(b); i++) { in tupleconcat()
565 if (Py_SIZE(a) == 0 || n == 1) { in tuplerepeat()
573 if (Py_SIZE(a) == 0 || n <= 0) { in tuplerepeat()
576 if (n > PY_SSIZE_T_MAX / Py_SIZE(a)) in tuplerepeat()
578 size = Py_SIZE(a) * n; in tuplerepeat()
585 for (j = 0; j < Py_SIZE(a); j++) { in tuplerepeat()
616 start += Py_SIZE(self); in tuple_index_impl()
621 stop += Py_SIZE(self); in tuple_index_impl()
623 else if (stop > Py_SIZE(self)) { in tuple_index_impl()
624 stop = Py_SIZE(self); in tuple_index_impl()
653 for (i = 0; i < Py_SIZE(self); i++) { in tuple_count()
668 for (i = Py_SIZE(o); --i >= 0; ) in tupletraverse()
686 vlen = Py_SIZE(vt); in tuplerichcompare()
687 wlen = Py_SIZE(wt); in tuplerichcompare()
880 return Py_BuildValue("(N)", tupleslice(self, 0, Py_SIZE(self))); in tuple___getnewargs___impl()
961 (Py_SIZE(v) != 0 && Py_REFCNT(v) != 1)) { in _PyTuple_Resize()
967 oldsize = Py_SIZE(v); in _PyTuple_Resize()