Home
last modified time | relevance | path

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

/third_party/python/Objects/
Diterobject.c8 Py_ssize_t it_index; member
26 it->it_index = 0; in PySeqIter_New()
60 if (it->it_index == PY_SSIZE_T_MAX) { in iter_iternext()
66 result = PySequence_GetItem(seq, it->it_index); in iter_iternext()
68 it->it_index++; in iter_iternext()
95 len = seqsize - it->it_index; in iter_len()
109 it->it_seq, it->it_index); in iter_reduce()
125 it->it_index = index; in iter_setstate()
Dtupleobject.c1060 Py_ssize_t it_index; member
1091 if (it->it_index < PyTuple_GET_SIZE(seq)) { in tupleiter_next()
1092 item = PyTuple_GET_ITEM(seq, it->it_index); in tupleiter_next()
1093 ++it->it_index; in tupleiter_next()
1108 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len()
1120 it->it_seq, it->it_index); in tupleiter_reduce()
1136 it->it_index = index; in tupleiter_setstate()
1196 it->it_index = 0; in tuple_iter()
Dlistobject.c3090 Py_ssize_t it_index; member
3159 it->it_index = 0; in list_iter()
3193 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next()
3194 item = PyList_GET_ITEM(seq, it->it_index); in listiter_next()
3195 ++it->it_index; in listiter_next()
3210 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()
3234 it->it_index = index; in listiter_setstate()
3243 Py_ssize_t it_index; member
3310 it->it_index = PyList_GET_SIZE(self) - 1; in list___reversed___impl()
3346 index = it->it_index; in listreviter_next()
[all …]
Dbytearrayobject.c2367 Py_ssize_t it_index; member
2398 if (it->it_index < PyByteArray_GET_SIZE(seq)) { in bytearrayiter_next()
2400 (unsigned char)PyByteArray_AS_STRING(seq)[it->it_index]); in bytearrayiter_next()
2402 ++it->it_index; in bytearrayiter_next()
2416 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytearrayiter_length_hint()
2433 it->it_seq, it->it_index); in bytearrayiter_reduce()
2450 it->it_index = index; in bytearrayiter_setstate()
2512 it->it_index = 0; in bytearray_iter()
Dbytesobject.c3091 Py_ssize_t it_index; member
3121 if (it->it_index < PyBytes_GET_SIZE(seq)) { in striter_next()
3123 (unsigned char)seq->ob_sval[it->it_index++]); in striter_next()
3136 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len()
3149 it->it_seq, it->it_index); in striter_reduce()
3168 it->it_index = index; in striter_setstate()
3230 it->it_index = 0; in bytes_iter()
Dmemoryobject.c3171 Py_ssize_t it_index; member
3201 if (it->it_index < it->it_length) { in memoryiter_next()
3206 ptr += view->strides[0] * it->it_index++; in memoryiter_next()
3250 it->it_index = 0; in memory_iter()
Dunicodeobject.c15988 Py_ssize_t it_index; member
16018 if (it->it_index < PyUnicode_GET_LENGTH(seq)) { in unicodeiter_next()
16021 Py_UCS4 chr = PyUnicode_READ(kind, data, it->it_index); in unicodeiter_next()
16024 ++it->it_index; in unicodeiter_next()
16038 len = PyUnicode_GET_LENGTH(it->it_seq) - it->it_index; in unicodeiter_len()
16050 it->it_seq, it->it_index); in unicodeiter_reduce()
16072 it->it_index = index; in unicodeiter_setstate()
16136 it->it_index = 0; in unicode_iter()
/third_party/python/Misc/
DHISTORY4383 change the C type of seqiterobject.it_index from long to Py_ssize_t.