Lines Matching refs:it_seq
2982 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member
3052 it->it_seq = (PyListObject *)seq; in list_iter()
3061 Py_XDECREF(it->it_seq); in listiter_dealloc()
3068 Py_VISIT(it->it_seq); in listiter_traverse()
3079 seq = it->it_seq; in listiter_next()
3091 it->it_seq = NULL; in listiter_next()
3100 if (it->it_seq) { in listiter_len()
3101 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
3120 if (it->it_seq != NULL) { in listiter_setstate()
3123 else if (index > PyList_GET_SIZE(it->it_seq)) in listiter_setstate()
3124 index = PyList_GET_SIZE(it->it_seq); /* iterator exhausted */ in listiter_setstate()
3135 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member
3203 it->it_seq = self; in list___reversed___impl()
3212 Py_XDECREF(it->it_seq); in listreviter_dealloc()
3219 Py_VISIT(it->it_seq); in listreviter_traverse()
3231 seq = it->it_seq; in listreviter_next()
3245 it->it_seq = NULL; in listreviter_next()
3254 if (it->it_seq == NULL || PyList_GET_SIZE(it->it_seq) < len) in listreviter_len()
3271 if (it->it_seq != NULL) { in listreviter_setstate()
3274 else if (index > PyList_GET_SIZE(it->it_seq) - 1) in listreviter_setstate()
3275 index = PyList_GET_SIZE(it->it_seq) - 1; in listreviter_setstate()
3291 if (it->it_seq) in listiter_reduce_general()
3293 it->it_seq, it->it_index); in listiter_reduce_general()
3296 if (it->it_seq) in listiter_reduce_general()
3298 it->it_seq, it->it_index); in listiter_reduce_general()