Searched refs:it_seq (Results 1 – 11 of 11) sorted by relevance
10 PyObject *it_seq; /* Set to NULL when iterator is exhausted */ member27 it->it_seq = seq; in PySeqIter_New()36 Py_XDECREF(it->it_seq); in iter_dealloc()43 Py_VISIT(it->it_seq); in iter_traverse()56 seq = it->it_seq; in iter_iternext()74 it->it_seq = NULL; in iter_iternext()85 if (it->it_seq) { in iter_len()86 if (_PyObject_HasLen(it->it_seq)) { in iter_len()87 seqsize = PySequence_Size(it->it_seq); in iter_len()106 if (it->it_seq != NULL) in iter_reduce()[all …]
949 PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */ member956 Py_XDECREF(it->it_seq); in tupleiter_dealloc()963 Py_VISIT(it->it_seq); in tupleiter_traverse()974 seq = it->it_seq; in tupleiter_next()986 it->it_seq = NULL; in tupleiter_next()995 if (it->it_seq) in tupleiter_len()996 len = PyTuple_GET_SIZE(it->it_seq) - it->it_index; in tupleiter_len()1005 if (it->it_seq) in tupleiter_reduce()1007 it->it_seq, it->it_index); in tupleiter_reduce()1018 if (it->it_seq != NULL) { in tupleiter_setstate()[all …]
2982 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */ member3052 it->it_seq = (PyListObject *)seq; in list_iter()3061 Py_XDECREF(it->it_seq); in listiter_dealloc()3068 Py_VISIT(it->it_seq); in listiter_traverse()3079 seq = it->it_seq; in listiter_next()3091 it->it_seq = NULL; in listiter_next()3100 if (it->it_seq) { in listiter_len()3101 len = PyList_GET_SIZE(it->it_seq) - it->it_index; in listiter_len()3120 if (it->it_seq != NULL) { in listiter_setstate()3123 else if (index > PyList_GET_SIZE(it->it_seq)) in listiter_setstate()[all …]
2282 PyByteArrayObject *it_seq; /* Set to NULL when iterator is exhausted */ member2289 Py_XDECREF(it->it_seq); in bytearrayiter_dealloc()2296 Py_VISIT(it->it_seq); in bytearrayiter_traverse()2307 seq = it->it_seq; in bytearrayiter_next()2320 it->it_seq = NULL; in bytearrayiter_next()2329 if (it->it_seq) { in bytearrayiter_length_hint()2330 len = PyByteArray_GET_SIZE(it->it_seq) - it->it_index; in bytearrayiter_length_hint()2344 if (it->it_seq != NULL) { in bytearrayiter_reduce()2346 it->it_seq, it->it_index); in bytearrayiter_reduce()2358 if (it->it_seq != NULL) { in bytearrayiter_setstate()[all …]
3052 PyBytesObject *it_seq; /* Set to NULL when iterator is exhausted */ member3059 Py_XDECREF(it->it_seq); in striter_dealloc()3066 Py_VISIT(it->it_seq); in striter_traverse()3077 seq = it->it_seq; in striter_next()3090 it->it_seq = NULL; in striter_next()3099 if (it->it_seq) in striter_len()3100 len = PyBytes_GET_SIZE(it->it_seq) - it->it_index; in striter_len()3110 if (it->it_seq != NULL) { in striter_reduce()3112 it->it_seq, it->it_index); in striter_reduce()3126 if (it->it_seq != NULL) { in striter_setstate()[all …]
15370 PyObject *it_seq; /* Set to NULL when iterator is exhausted */ member15377 Py_XDECREF(it->it_seq); in unicodeiter_dealloc()15384 Py_VISIT(it->it_seq); in unicodeiter_traverse()15394 seq = it->it_seq; in unicodeiter_next()15409 it->it_seq = NULL; in unicodeiter_next()15418 if (it->it_seq) in unicodeiter_len()15419 len = PyUnicode_GET_LENGTH(it->it_seq) - it->it_index; in unicodeiter_len()15428 if (it->it_seq != NULL) { in unicodeiter_reduce()15430 it->it_seq, it->it_index); in unicodeiter_reduce()15447 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()