Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/practical-python
/ __init__
Method
__init__
Solutions/7_11/portfolio.py:7–8 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
5
6
class
Portfolio:
7
def
__init__(self):
8
self._holdings = []
9
10
@classmethod
11
def
from_csv(cls, lines, **opts):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected