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

Method __next__

0b_traits/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 def __del__(self):
15 print("destroyed at", self.count)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected