Lines Matching refs:upper
387 PyObject *upper=NULL, *lower=NULL;
410 /* Find lower and upper bounds for start and stop. */
416 upper = PyNumber_Add(length, lower);
417 if (upper == NULL)
423 upper = length;
424 Py_INCREF(upper);
429 start = step_is_negative ? upper : lower;
455 cmp_result = PyObject_RichCompareBool(start, upper, Py_GT);
459 Py_INCREF(upper);
461 start = upper;
468 stop = step_is_negative ? lower : upper;
494 cmp_result = PyObject_RichCompareBool(stop, upper, Py_GT);
498 Py_INCREF(upper);
500 stop = upper;
508 Py_DECREF(upper);
517 Py_XDECREF(upper);