MCPcopy Index your code
hub / github.com/RustPython/RustPython / __next__

Method __next__

Lib/test/test_set.py:1751–1755  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1749 def __iter__(self):
1750 return self
1751 def __next__(self):
1752 if self.i >= len(self.seqn): raise StopIteration
1753 v = self.seqn[self.i]
1754 self.i += 1
1755 return v
1756
1757class Ig:
1758 'Sequence using iterator protocol defined with a generator'

Callers 6

sync_iterateMethod · 0.45
async_iterateMethod · 0.45
test_notimplementedMethod · 0.45

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected