Searched refs:it_seq (Results 1 – 7 of 7) sorted by relevance
9 PyObject *it_seq; /* Set to NULL when iterator is exhausted */ member28 it->it_seq = seq; in PySeqIter_New()37 Py_XDECREF(it->it_seq); in iter_dealloc()44 Py_VISIT(it->it_seq); in iter_traverse()57 seq = it->it_seq; in iter_iternext()75 it->it_seq = NULL; in iter_iternext()86 if (it->it_seq) { in iter_len()87 if (_PyObject_HasLen(it->it_seq)) { in iter_len()88 seqsize = PySequence_Size(it->it_seq); in iter_len()107 if (it->it_seq != NULL) in iter_reduce()[all …]
1061 PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */ member1068 Py_XDECREF(it->it_seq); in tupleiter_dealloc()1075 Py_VISIT(it->it_seq); in tupleiter_traverse()1086 seq = it->it_seq; in tupleiter_next()1098 it->it_seq = NULL; in tupleiter_next()1107 if (it->it_seq) in tupleiter_len()1108 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len()1118 if (it->it_seq) in tupleiter_reduce()1120 it->it_seq, it->it_index); in tupleiter_reduce()1131 if (it->it_seq != NULL) { in tupleiter_setstate()[all …]
3091 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member3161 it->it_seq = (PyListObject *)seq; in list_iter()3170 Py_XDECREF(it->it_seq); in listiter_dealloc()3177 Py_VISIT(it->it_seq); in listiter_traverse()3188 seq = it->it_seq; in listiter_next()3200 it->it_seq = NULL; in listiter_next()3209 if (it->it_seq) { in listiter_len()3210 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()3229 if (it->it_seq != NULL) { in listiter_setstate()3232 else if (index > PyList_GET_SIZE(it->it_seq)) in listiter_setstate()[all …]
2368 PyByteArrayObject *it_seq; /* Set to NULL when iterator is exhausted */ member2375 Py_XDECREF(it->it_seq); in bytearrayiter_dealloc()2382 Py_VISIT(it->it_seq); in bytearrayiter_traverse()2393 seq = it->it_seq; in bytearrayiter_next()2406 it->it_seq = NULL; in bytearrayiter_next()2415 if (it->it_seq) { in bytearrayiter_length_hint()2416 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytearrayiter_length_hint()2431 if (it->it_seq != NULL) { in bytearrayiter_reduce()2433 it->it_seq, it->it_index); in bytearrayiter_reduce()2445 if (it->it_seq != NULL) { in bytearrayiter_setstate()[all …]
3092 PyBytesObject *it_seq; /* Set to NULL when iterator is exhausted */ member3099 Py_XDECREF(it->it_seq); in striter_dealloc()3106 Py_VISIT(it->it_seq); in striter_traverse()3116 seq = it->it_seq; in striter_next()3126 it->it_seq = NULL; in striter_next()3135 if (it->it_seq) in striter_len()3136 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len()3147 if (it->it_seq != NULL) { in striter_reduce()3149 it->it_seq, it->it_index); in striter_reduce()3163 if (it->it_seq != NULL) { in striter_setstate()[all …]
3172 PyMemoryViewObject *it_seq; // Set to NULL when iterator is exhausted member3181 Py_XDECREF(it->it_seq); in memoryiter_dealloc()3188 Py_VISIT(it->it_seq); in memoryiter_traverse()3196 seq = it->it_seq; in memoryiter_next()3214 it->it_seq = NULL; in memoryiter_next()3252 it->it_seq = obj; in memory_iter()
15989 PyObject *it_seq; /* Set to NULL when iterator is exhausted */ member15996 Py_XDECREF(it->it_seq); in unicodeiter_dealloc()16003 Py_VISIT(it->it_seq); in unicodeiter_traverse()16013 seq = it->it_seq; in unicodeiter_next()16028 it->it_seq = NULL; in unicodeiter_next()16037 if (it->it_seq) in unicodeiter_len()16038 len = PyUnicode_GET_LENGTH(it->it_seq) - it->it_index; in unicodeiter_len()16048 if (it->it_seq != NULL) { in unicodeiter_reduce()16050 it->it_seq, it->it_index); in unicodeiter_reduce()16067 if (it->it_seq != NULL) { in unicodeiter_setstate()[all …]