Lines Matching refs:it_seq
3051 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member
3121 it->it_seq = (PyListObject *)seq; in list_iter()
3130 Py_XDECREF(it->it_seq); in listiter_dealloc()
3137 Py_VISIT(it->it_seq); in listiter_traverse()
3148 seq = it->it_seq; in listiter_next()
3160 it->it_seq = NULL; in listiter_next()
3169 if (it->it_seq) { in listiter_len()
3170 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
3189 if (it->it_seq != NULL) { in listiter_setstate()
3192 else if (index > PyList_GET_SIZE(it->it_seq)) in listiter_setstate()
3193 index = PyList_GET_SIZE(it->it_seq); /* iterator exhausted */ in listiter_setstate()
3204 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member
3272 it->it_seq = self; in list___reversed___impl()
3281 Py_XDECREF(it->it_seq); in listreviter_dealloc()
3288 Py_VISIT(it->it_seq); in listreviter_traverse()
3300 seq = it->it_seq; in listreviter_next()
3314 it->it_seq = NULL; in listreviter_next()
3323 if (it->it_seq == NULL || PyList_GET_SIZE(it->it_seq) < len) in listreviter_len()
3340 if (it->it_seq != NULL) { in listreviter_setstate()
3343 else if (index > PyList_GET_SIZE(it->it_seq) - 1) in listreviter_setstate()
3344 index = PyList_GET_SIZE(it->it_seq) - 1; in listreviter_setstate()
3362 if (it->it_seq) in listiter_reduce_general()
3364 it->it_seq, it->it_index); in listiter_reduce_general()
3367 if (it->it_seq) in listiter_reduce_general()
3369 it->it_seq, it->it_index); in listiter_reduce_general()