Lines Matching defs:ao
53 arrayobject *ao;
2815 static PyObject *array_iter(arrayobject *ao);
2875 array_iter(arrayobject *ao)
2877 array_state *state = find_array_state_by_type(Py_TYPE(ao));
2880 if (!array_Check(ao, state)) {
2889 Py_INCREF(ao);
2890 it->ao = ao;
2892 it->getitem = ao->ob_descr->getitem;
2900 arrayobject *ao;
2907 ao = it->ao;
2908 if (ao == NULL) {
2912 assert(array_Check(ao, state));
2914 if (it->index < Py_SIZE(ao)) {
2915 return (*it->getitem)(ao, it->index++);
2917 it->ao = NULL;
2918 Py_DECREF(ao);
2928 Py_XDECREF(it->ao);
2937 Py_VISIT(it->ao);
2958 if (self->ao == NULL) {
2961 return Py_BuildValue("N(O)n", func, self->ao, self->index);
2982 else if (index > Py_SIZE(self->ao))
2983 index = Py_SIZE(self->ao); /* iterator exhausted */