def op(self):
        if self.index >= self.max_length:
            self._final = True
            raise StopIteration
        try:
            e = self.list[self.index]
            _log.debug("%s.next() = %s" % (self.__str__(), e))
            self.index += 1
            return e
        except:
            if self._final:
                _log.debug("%s.next() GOT STOP" % self.__str__())
                raise StopIteration
            else:
                _log.debug(self.__str__() % "%s.next() GOT PAUSE")
                raise PauseIteration
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/utilities/dynops.py/List.op/swapped operands of `%`