Nov-10-2019, 08:36 PM
i don't see "StopIteration" anywhere in that code. isn't
__next__()
suppose to raise StopIteration when the generator is exhausted? or do you expect next()
to do that for you? would that mean self.ite
is being updated as this iterates? if not, where is next()
looking to know when it reaches the end?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.