MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / __next__

Method __next__

09_iterators/python/iterators.py:8–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6 return self
7
8 def __next__(self):
9 if self.count < 5:
10 self.count += 1
11 return self.count
12 raise StopIteration
13
14
15if __name__ == '__main__':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected