def __iter__(self):

        ctrl = []

        if self.adj_tokens[False] is not None:
            ctrl += [ " prev" ]
        if self.adj_tokens[True] is not None:
            ctrl += [ " next" ]

        self.vf_iter = iter(ctrl + [e + self.visible_files[e].extension for e in self.visible_files])

        return self
Create an iterator. Method allows - in a simple manner - for obtaining a generator which contains filenames.
dataset/ETHPy150Open rasguanabana/ytfs/ytfs/actions.py/YTActions.__iter__