Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ __iter__
Method
__iter__
09_iterators/python/iterators.py:5–6 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3
self.count = 0
4
5
def
__iter__(self):
6
return
self
7
8
def
__next__(self):
9
if
self.count < 5:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected