Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/practical-python
/ __iter__
Method
__iter__
Solutions/7_11/portfolio.py:26–27 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
24
self._holdings.append(holding)
25
26
def
__iter__(self):
27
return
self._holdings.__iter__()
28
29
def
__len__(self):
30
return
len(self._holdings)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected