Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ __next__
Method
__next__
17-it-generator/sentence_iter2.py:32–34 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
30
self.word_iter = word_iter
# <3>
31
32
def
__next__(self):
33
match = next(self.word_iter)
# <4>
34
return
match.group()
# <5>
35
36
def
__iter__(self):
37
return
self
Callers
nothing calls this directly
Calls
1
next
Function · 0.85
Tested by
no test coverage detected