Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dabeaz-course/python-mastery
/ from_row
Method
from_row
Solutions/3_3/stock.py:11–13 ·
view source on GitHub ↗
(cls, row)
Source
from the content-addressed store, hash-verified
9
10
@classmethod
11
def
from_row(cls, row):
12
values = [func(val)
for
func, val in zip(cls.types, row)]
13
return
cls(*values)
14
15
def
cost(self):
16
return
self.shares * self.price
Callers
6
test_from_row
Method · 0.45
read_csv_as_instances
Function · 0.45
read_portfolio
Function · 0.45
test_from_row
Method · 0.45
test_from_row
Method · 0.45
test_from_row
Method · 0.45
Calls
no outgoing calls
Tested by
4
test_from_row
Method · 0.36
test_from_row
Method · 0.36
test_from_row
Method · 0.36
test_from_row
Method · 0.36