Lines Matching refs:Py_SIZE
37 Py_SIZE(self) = newsize;
70 Py_SIZE(self) = newsize;
159 Py_SIZE(op) = size;
173 return Py_SIZE(op);
185 if (i < 0 || i >= Py_SIZE(op)) {
209 if (i < 0 || i >= Py_SIZE(op)) {
225 Py_ssize_t i, n = Py_SIZE(self);
307 i = Py_SIZE(op);
339 for (i = 0; i < Py_SIZE(op); i++) {
373 if (Py_SIZE(v) == 0) {
384 for (i = 0; i < Py_SIZE(v); ++i) {
434 return Py_SIZE(a);
443 for (i = 0, cmp = 0 ; cmp == 0 && i < Py_SIZE(a); ++i)
452 if (i < 0 || i >= Py_SIZE(a)) {
474 else if (ilow > Py_SIZE(a))
475 ilow = Py_SIZE(a);
478 else if (ihigh > Py_SIZE(a))
479 ihigh = Py_SIZE(a);
519 size = Py_SIZE(a) + Py_SIZE(b);
528 for (i = 0; i < Py_SIZE(a); i++) {
534 dest = np->ob_item + Py_SIZE(a);
535 for (i = 0; i < Py_SIZE(b); i++) {
554 if (n > 0 && Py_SIZE(a) > PY_SSIZE_T_MAX / n)
556 size = Py_SIZE(a) * n;
564 if (Py_SIZE(a) == 1) {
575 for (j = 0; j < Py_SIZE(a); j++) {
592 i = Py_SIZE(a);
593 Py_SIZE(a) = 0;
639 v = list_slice(b, 0, Py_SIZE(b));
654 else if (ilow > Py_SIZE(a))
655 ilow = Py_SIZE(a);
659 else if (ihigh > Py_SIZE(a))
660 ihigh = Py_SIZE(a);
665 if (Py_SIZE(a) + d == 0) {
683 (Py_SIZE(a) - ihigh)*sizeof(PyObject *));
684 list_resize(a, Py_SIZE(a) + d);
688 k = Py_SIZE(a);
764 if (i < 0 || i >= Py_SIZE(a)) {
823 m = Py_SIZE(self);
856 m = Py_SIZE(self);
863 Py_SIZE(self) = m;
882 if (Py_SIZE(self) < self->allocated) {
884 PyList_SET_ITEM(self, Py_SIZE(self), item);
885 ++Py_SIZE(self);
896 if (Py_SIZE(self) < self->allocated)
897 list_resize(self, Py_SIZE(self)); /* shrinking can't fail */
936 if (Py_SIZE(self) == 0) {
942 i += Py_SIZE(self);
943 if (i < 0 || i >= Py_SIZE(self)) {
948 if (i == Py_SIZE(self) - 1) {
949 status = list_resize(self, Py_SIZE(self) - 1);
2087 saved_ob_size = Py_SIZE(self);
2090 Py_SIZE(self) = 0;
2196 i = Py_SIZE(self);
2197 Py_SIZE(self) = saved_ob_size;
2232 if (Py_SIZE(self) > 1)
2233 reverse_slice(self->ob_item, self->ob_item + Py_SIZE(self));
2246 if (Py_SIZE(self) > 1)
2247 reverse_slice(self->ob_item, self->ob_item + Py_SIZE(self));
2261 n = Py_SIZE(v);
2279 Py_ssize_t i, start=0, stop=Py_SIZE(self);
2288 start += Py_SIZE(self);
2293 stop += Py_SIZE(self);
2297 for (i = start; i < stop && i < Py_SIZE(self); i++) {
2327 for (i = 0; i < Py_SIZE(self); i++) {
2342 for (i = 0; i < Py_SIZE(self); i++) {
2362 for (i = Py_SIZE(o); --i >= 0; )
2381 if (Py_SIZE(vl) != Py_SIZE(wl) && (op == Py_EQ || op == Py_NE)) {
2393 for (i = 0; i < Py_SIZE(vl) && i < Py_SIZE(wl); i++) {
2402 if (i >= Py_SIZE(vl) || i >= Py_SIZE(wl)) {
2404 Py_ssize_t vs = Py_SIZE(vl);
2405 Py_ssize_t ws = Py_SIZE(wl);
2449 assert(0 <= Py_SIZE(self));
2450 assert(Py_SIZE(self) <= self->allocated || self->allocated == -1);
2562 if (PySlice_GetIndicesEx((PySliceObject*)item, Py_SIZE(self),
2611 if (PySlice_GetIndicesEx((PySliceObject*)item, Py_SIZE(self),
2663 if (cur + step >= (size_t)Py_SIZE(self)) {
2664 lim = Py_SIZE(self) - cur - 1;
2672 if (cur < (size_t)Py_SIZE(self)) {
2675 (Py_SIZE(self) - cur) *
2679 Py_SIZE(self) -= slicelength;
2680 list_resize(self, Py_SIZE(self));