__iter__() should be a generator
Closed this issue · 0 comments
clintval commented
def __iter__(self):
for sample in self.samples:
yield sample
This will negate the need for __next__()
and for binding a temporary _iter = []
variable
Closed this issue · 0 comments
def __iter__(self):
for sample in self.samples:
yield sample
This will negate the need for __next__()
and for binding a temporary _iter = []
variable