Searched refs:it_seq (Results 1 – 11 of 11) sorted by relevance
11 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()108 if (it->it_seq != NULL) in iter_reduce()[all …]
973 PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */ member980 Py_XDECREF(it->it_seq); in tupleiter_dealloc()987 Py_VISIT(it->it_seq); in tupleiter_traverse()998 seq = it->it_seq; in tupleiter_next()1010 it->it_seq = NULL; in tupleiter_next()1019 if (it->it_seq) in tupleiter_len()1020 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len()1030 if (it->it_seq) in tupleiter_reduce()1032 it->it_seq, it->it_index); in tupleiter_reduce()1043 if (it->it_seq != NULL) { in tupleiter_setstate()[all …]
3051 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member3121 it->it_seq = (PyListObject *)seq; in list_iter()3130 Py_XDECREF(it->it_seq); in listiter_dealloc()3137 Py_VISIT(it->it_seq); in listiter_traverse()3148 seq = it->it_seq; in listiter_next()3160 it->it_seq = NULL; in listiter_next()3169 if (it->it_seq) { in listiter_len()3170 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()3189 if (it->it_seq != NULL) { in listiter_setstate()3192 else if (index > PyList_GET_SIZE(it->it_seq)) in listiter_setstate()[all …]
2314 PyByteArrayObject *it_seq; /* Set to NULL when iterator is exhausted */ member2321 Py_XDECREF(it->it_seq); in bytearrayiter_dealloc()2328 Py_VISIT(it->it_seq); in bytearrayiter_traverse()2339 seq = it->it_seq; in bytearrayiter_next()2352 it->it_seq = NULL; in bytearrayiter_next()2361 if (it->it_seq) { in bytearrayiter_length_hint()2362 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytearrayiter_length_hint()2377 if (it->it_seq != NULL) { in bytearrayiter_reduce()2379 it->it_seq, it->it_index); in bytearrayiter_reduce()2391 if (it->it_seq != NULL) { in bytearrayiter_setstate()[all …]
3060 PyBytesObject *it_seq; /* Set to NULL when iterator is exhausted */ member3067 Py_XDECREF(it->it_seq); in striter_dealloc()3074 Py_VISIT(it->it_seq); in striter_traverse()3085 seq = it->it_seq; in striter_next()3098 it->it_seq = NULL; in striter_next()3107 if (it->it_seq) in striter_len()3108 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len()3119 if (it->it_seq != NULL) { in striter_reduce()3121 it->it_seq, it->it_index); in striter_reduce()3135 if (it->it_seq != NULL) { in striter_setstate()[all …]
15393 PyObject *it_seq; /* Set to NULL when iterator is exhausted */ member15400 Py_XDECREF(it->it_seq); in unicodeiter_dealloc()15407 Py_VISIT(it->it_seq); in unicodeiter_traverse()15417 seq = it->it_seq; in unicodeiter_next()15432 it->it_seq = NULL; in unicodeiter_next()15441 if (it->it_seq) in unicodeiter_len()15442 len = PyUnicode_GET_LENGTH(it->it_seq) - it->it_index; in unicodeiter_len()15452 if (it->it_seq != NULL) { in unicodeiter_reduce()15454 it->it_seq, it->it_index); in unicodeiter_reduce()15471 if (it->it_seq != NULL) { in unicodeiter_setstate()[all …]
8 PyObject *it_seq; /* Set to NULL when iterator is exhausted */ member25 it->it_seq = seq; in PySeqIter_New()34 Py_XDECREF(it->it_seq); in iter_dealloc()41 Py_VISIT(it->it_seq); in iter_traverse()54 seq = it->it_seq; in iter_iternext()72 it->it_seq = NULL; in iter_iternext()83 if (it->it_seq) { in iter_len()84 seqsize = PySequence_Size(it->it_seq); in iter_len()
929 PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */ member936 Py_XDECREF(it->it_seq); in tupleiter_dealloc()943 Py_VISIT(it->it_seq); in tupleiter_traverse()954 seq = it->it_seq; in tupleiter_next()966 it->it_seq = NULL; in tupleiter_next()975 if (it->it_seq) in tupleiter_len()976 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len()1034 it->it_seq = (PyTupleObject *)seq; in tuple_iter()
2817 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member2881 it->it_seq = (PyListObject *)seq; in list_iter()2890 Py_XDECREF(it->it_seq); in listiter_dealloc()2897 Py_VISIT(it->it_seq); in listiter_traverse()2908 seq = it->it_seq; in listiter_next()2920 it->it_seq = NULL; in listiter_next()2929 if (it->it_seq) { in listiter_len()2930 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()2941 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member2999 it->it_seq = seq; in list_reversed()[all …]
3007 PyBytesObject *it_seq; /* Set to NULL when iterator is exhausted */ member3014 Py_XDECREF(it->it_seq); in striter_dealloc()3021 Py_VISIT(it->it_seq); in striter_traverse()3032 seq = it->it_seq; in striter_next()3045 it->it_seq = NULL; in striter_next()3054 if (it->it_seq) in striter_len()3055 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len()3065 if (it->it_seq != NULL) { in striter_reduce()3067 it->it_seq, it->it_index); in striter_reduce()3081 if (it->it_seq != NULL) { in striter_setstate()[all …]
2966 PyByteArrayObject *it_seq; /* Set to NULL when iterator is exhausted */ member2973 Py_XDECREF(it->it_seq); in bytearrayiter_dealloc()2980 Py_VISIT(it->it_seq); in bytearrayiter_traverse()2991 seq = it->it_seq; in bytearrayiter_next()3004 it->it_seq = NULL; in bytearrayiter_next()3013 if (it->it_seq) in bytesarrayiter_length_hint()3014 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytesarrayiter_length_hint()3074 it->it_seq = (PyByteArrayObject *)seq; in bytearray_iter()