Lines Matching refs:Py_SIZE
105 Py_SIZE(op) = size; in PyTuple_New()
146 return Py_SIZE(op); in PyTuple_Size()
156 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_GetItem()
172 if (i < 0 || i >= Py_SIZE(op)) { in PyTuple_SetItem()
192 n = Py_SIZE(t); in _PyTuple_MaybeUntrack()
241 Py_ssize_t len = Py_SIZE(op); in tupledealloc()
271 n = Py_SIZE(v); in tuplerepr()
286 if (Py_SIZE(v) > 1) { in tuplerepr()
288 writer.min_length = 1 + 1 + (2 + 1) * (Py_SIZE(v) - 1) + 1; in tuplerepr()
370 Py_ssize_t i, len = Py_SIZE(v); in tuplehash()
396 return Py_SIZE(a); in tuplelength()
405 for (i = 0, cmp = 0 ; cmp == 0 && i < Py_SIZE(a); ++i) in tuplecontains()
414 if (i < 0 || i >= Py_SIZE(a)) { in tupleitem()
444 if (ihigh > Py_SIZE(a)) in tupleslice()
445 ihigh = Py_SIZE(a); in tupleslice()
448 if (ilow == 0 && ihigh == Py_SIZE(a) && PyTuple_CheckExact(a)) { in tupleslice()
472 if (Py_SIZE(a) == 0 && PyTuple_CheckExact(bb)) { in tupleconcat()
483 if (Py_SIZE(b) == 0 && PyTuple_CheckExact(a)) { in tupleconcat()
487 if (Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) in tupleconcat()
489 size = Py_SIZE(a) + Py_SIZE(b); in tupleconcat()
496 for (i = 0; i < Py_SIZE(a); i++) { in tupleconcat()
502 dest = np->ob_item + Py_SIZE(a); in tupleconcat()
503 for (i = 0; i < Py_SIZE(b); i++) { in tupleconcat()
521 if (Py_SIZE(a) == 0 || n == 1) { in tuplerepeat()
528 if (Py_SIZE(a) == 0) in tuplerepeat()
531 if (n > PY_SSIZE_T_MAX / Py_SIZE(a)) in tuplerepeat()
533 size = Py_SIZE(a) * n; in tuplerepeat()
540 for (j = 0; j < Py_SIZE(a); j++) { in tuplerepeat()
570 start += Py_SIZE(self); in tuple_index_impl()
575 stop += Py_SIZE(self); in tuple_index_impl()
577 else if (stop > Py_SIZE(self)) { in tuple_index_impl()
578 stop = Py_SIZE(self); in tuple_index_impl()
607 for (i = 0; i < Py_SIZE(self); i++) { in tuple_count()
622 for (i = Py_SIZE(o); --i >= 0; ) in tupletraverse()
640 vlen = Py_SIZE(vt); in tuplerichcompare()
641 wlen = Py_SIZE(wt); in tuplerichcompare()
809 return Py_BuildValue("(N)", tupleslice(self, 0, Py_SIZE(self))); in tuple___getnewargs___impl()
887 (Py_SIZE(v) != 0 && Py_REFCNT(v) != 1)) { in _PyTuple_Resize()
893 oldsize = Py_SIZE(v); in _PyTuple_Resize()