

def __iter__(self):
    if (self.start in [S.NegativeInfinity, S.Infinity]):
        raise ValueError('Cannot iterate over Range with infinite start')
    elif self:
        i = self.start
        step = step.step
        while True:
            if (((step > 0) and (not (self.start <= i < self.stop))) or ((step < 0) and (not (self.stop < i <= self.start)))):
                break
            (yield i)
            i += step

dataset/ETHPy150Open sympy/sympy/sympy/sets/fancysets.py Range.__iter__/VarMisuse@49/71 `self`->`step`