'''
This module is intended to overload Range iterator. 
'''


class Range:
    def __init__(self, start, end):
        self._current = start
        self._stop = end
        self._first = start

    def __iter__(self):
        return self

    def __next__(self):
        if self._current < self._stop and self._current is not None:
            result = self._current
            self._current += 1
            return result
       # print("aaa:  ", result)
        self._current = self._first


r = Range(0,3)
i = iter(r)

for j in range(0,8):
    print(next(i))  


e4d250bcc7c6e7c27233283d14df9024dca0a4ef
<mask token>


class Range:

    def __init__(self, start, end):
        self._current = start
        self._stop = end
        self._first = start
    <mask token>

    def __next__(self):
        if self._current < self._stop and self._current is not None:
            result = self._current
            self._current += 1
            return result
        self._current = self._first


<mask token>

<mask token>


class Range:

    def __init__(self, start, end):
        self._current = start
        self._stop = end
        self._first = start

    def __iter__(self):
        return self

    def __next__(self):
        if self._current < self._stop and self._current is not None:
            result = self._current
            self._current += 1
            return result
        self._current = self._first


<mask token>

<mask token>


class Range:

    def __init__(self, start, end):
        self._current = start
        self._stop = end
        self._first = start

    def __iter__(self):
        return self

    def __next__(self):
        if self._current < self._stop and self._current is not None:
            result = self._current
            self._current += 1
            return result
        self._current = self._first


<mask token>
for j in range(0, 8):
    print(next(i))

<mask token>


class Range:

    def __init__(self, start, end):
        self._current = start
        self._stop = end
        self._first = start

    def __iter__(self):
        return self

    def __next__(self):
        if self._current < self._stop and self._current is not None:
            result = self._current
            self._current += 1
            return result
        self._current = self._first


r = Range(0, 3)
i = iter(r)
for j in range(0, 8):
    print(next(i))

'''
This module is intended to overload Range iterator. 
'''


class Range:
    def __init__(self, start, end):
        self._current = start
        self._stop = end
        self._first = start

    def __iter__(self):
        return self

    def __next__(self):
        if self._current < self._stop and self._current is not None:
            result = self._current
            self._current += 1
            return result
       # print("aaa:  ", result)
        self._current = self._first


r = Range(0,3)
i = iter(r)

for j in range(0,8):
    print(next(i))  

