MCPcopy Index your code
hub / github.com/python/cpython / __next__

Method __next__

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

Source from the content-addressed store, hash-verified

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

Callers 7

sync_iterateMethod · 0.45
async_iterateMethod · 0.45
test_notimplementedMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected