Searched refs:it_index (Results 1 – 12 of 12) sorted by relevance
/external/python/cpython3/Objects/ |
D | iterobject.c | 9 Py_ssize_t it_index; member 25 it->it_index = 0; in PySeqIter_New() 59 if (it->it_index == PY_SSIZE_T_MAX) { in iter_iternext() 65 result = PySequence_GetItem(seq, it->it_index); in iter_iternext() 67 it->it_index++; in iter_iternext() 94 len = seqsize - it->it_index; in iter_len() 108 it->it_seq, it->it_index); in iter_reduce() 124 it->it_index = index; in iter_setstate()
|
D | tupleobject.c | 948 Py_ssize_t it_index; member 979 if (it->it_index < PyTuple_GET_SIZE(seq)) { in tupleiter_next() 980 item = PyTuple_GET_ITEM(seq, it->it_index); in tupleiter_next() 981 ++it->it_index; in tupleiter_next() 996 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len() 1007 it->it_seq, it->it_index); in tupleiter_reduce() 1023 it->it_index = index; in tupleiter_setstate() 1083 it->it_index = 0; in tuple_iter()
|
D | listobject.c | 2981 Py_ssize_t it_index; member 3050 it->it_index = 0; in list_iter() 3084 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next() 3085 item = PyList_GET_ITEM(seq, it->it_index); in listiter_next() 3086 ++it->it_index; in listiter_next() 3101 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len() 3125 it->it_index = index; in listiter_setstate() 3134 Py_ssize_t it_index; member 3201 it->it_index = PyList_GET_SIZE(self) - 1; in list___reversed___impl() 3237 index = it->it_index; in listreviter_next() [all …]
|
D | bytearrayobject.c | 2281 Py_ssize_t it_index; member 2312 if (it->it_index < PyByteArray_GET_SIZE(seq)) { in bytearrayiter_next() 2314 (unsigned char)PyByteArray_AS_STRING(seq)[it->it_index]); in bytearrayiter_next() 2316 ++it->it_index; in bytearrayiter_next() 2330 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytearrayiter_length_hint() 2346 it->it_seq, it->it_index); in bytearrayiter_reduce() 2363 it->it_index = index; in bytearrayiter_setstate() 2425 it->it_index = 0; in bytearray_iter()
|
D | bytesobject.c | 3051 Py_ssize_t it_index; member 3082 if (it->it_index < PyBytes_GET_SIZE(seq)) { in striter_next() 3084 (unsigned char)seq->ob_sval[it->it_index]); in striter_next() 3086 ++it->it_index; in striter_next() 3100 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len() 3112 it->it_seq, it->it_index); in striter_reduce() 3131 it->it_index = index; in striter_setstate() 3193 it->it_index = 0; in bytes_iter()
|
D | unicodeobject.c | 15369 Py_ssize_t it_index; member 15399 if (it->it_index < PyUnicode_GET_LENGTH(seq)) { in unicodeiter_next() 15402 Py_UCS4 chr = PyUnicode_READ(kind, data, it->it_index); in unicodeiter_next() 15405 ++it->it_index; in unicodeiter_next() 15419 len = PyUnicode_GET_LENGTH(it->it_seq) - it->it_index; in unicodeiter_len() 15430 it->it_seq, it->it_index); in unicodeiter_reduce() 15452 it->it_index = index; in unicodeiter_setstate() 15516 it->it_index = 0; in unicode_iter()
|
/external/python/cpython2/Objects/ |
D | iterobject.c | 7 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()
|
D | tupleobject.c | 928 long it_index; member 959 if (it->it_index < PyTuple_GET_SIZE(seq)) { in tupleiter_next() 960 item = PyTuple_GET_ITEM(seq, it->it_index); in tupleiter_next() 961 ++it->it_index; in tupleiter_next() 976 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len() 1032 it->it_index = 0; in tuple_iter()
|
D | listobject.c | 2816 long it_index; member 2879 it->it_index = 0; in list_iter() 2913 if (it->it_index < PyList_GET_SIZE(seq)) { in listiter_next() 2914 item = PyList_GET_ITEM(seq, it->it_index); in listiter_next() 2915 ++it->it_index; in listiter_next() 2930 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len() 2940 Py_ssize_t it_index; member 2997 it->it_index = PyList_GET_SIZE(seq) - 1; in list_reversed() 3033 index = it->it_index; in listreviter_next() 3036 it->it_index--; in listreviter_next() [all …]
|
D | bytesobject.c | 3006 Py_ssize_t it_index; member 3037 if (it->it_index < PyBytes_GET_SIZE(seq)) { in striter_next() 3039 (unsigned char)seq->ob_sval[it->it_index]); in striter_next() 3041 ++it->it_index; in striter_next() 3055 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len() 3067 it->it_seq, it->it_index); in striter_reduce() 3086 it->it_index = index; in striter_setstate() 3148 it->it_index = 0; in bytes_iter()
|
D | bytearrayobject.c | 2965 Py_ssize_t it_index; member 2996 if (it->it_index < PyByteArray_GET_SIZE(seq)) { in bytearrayiter_next() 2998 (unsigned char)seq->ob_bytes[it->it_index]); in bytearrayiter_next() 3000 ++it->it_index; in bytearrayiter_next() 3014 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytesarrayiter_length_hint() 3072 it->it_index = 0; in bytearray_iter()
|
/external/python/cpython3/Misc/ |
D | HISTORY | 4383 change the C type of seqiterobject.it_index from long to Py_ssize_t.
|