class documentation

class SequenceIterator:

View In Hierarchy

An iterator for any of Python's sequence types.

Method __init__ Create an iterator for the given sequence.
Method __iter__ By convention, an iterator must return itself as an iterator.
Method __next__ Return the next element, or else raise StopIteration error.
Instance Variable _k Undocumented
Instance Variable _seq Undocumented
def __init__(self, sequence):

Create an iterator for the given sequence.

def __iter__(self):

By convention, an iterator must return itself as an iterator.

def __next__(self):

Return the next element, or else raise StopIteration error.

_k: int =

Undocumented

_seq =

Undocumented