Home
last modified time | relevance | path

Searched refs:it_index (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Objects/
Diterobject.c7 long it_index; member
23 it->it_index = 0; in PySeqIter_New()
57 if (it->it_index == LONG_MAX) { in iter_iternext()
63 result = PySequence_GetItem(seq, it->it_index); in iter_iternext()
65 it->it_index++; in iter_iternext()
87 len = seqsize - it->it_index; in iter_len()
Dtupleobject.c931 long it_index; member
962 if (it->it_index < PyTuple_GET_SIZE(seq)) { in tupleiter_next()
963 item = PyTuple_GET_ITEM(seq, it->it_index); in tupleiter_next()
964 ++it->it_index; in tupleiter_next()
979 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len()
1035 it->it_index = 0; in tuple_iter()
Dlistobject.c2817 long it_index; member
2880 it->it_index = 0; in list_iter()
2914 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next()
2915 item = PyList_GET_ITEM(seq, it->it_index); in listiter_next()
2916 ++it->it_index; in listiter_next()
2931 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
2941 Py_ssize_t it_index; member
2998 it->it_index = PyList_GET_SIZE(seq) - 1; in list_reversed()
3034 index = it->it_index; in listreviter_next()
3037 it->it_index--; in listreviter_next()
[all …]
Dbytearrayobject.c2953 Py_ssize_t it_index; member
2984 if (it->it_index < PyByteArray_GET_SIZE(seq)) { in bytearrayiter_next()
2986 (unsigned char)seq->ob_bytes[it->it_index]); in bytearrayiter_next()
2988 ++it->it_index; in bytearrayiter_next()
3002 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytesarrayiter_length_hint()
3060 it->it_index = 0; in bytearray_iter()