Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/python/cpython
/ __iter__
Method
__iter__
Lib/test/test_unittest/testmock/testmock.py:22–23 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
20
self.thing = iter([
'this'
,
'is'
,
'an'
,
'iter'
])
21
22
def
__iter__(self):
23
return
self
24
25
def
next(self):
26
return
next(self.thing)
Callers
1
test_dunder_call
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected