MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / from_row

Method from_row

Solutions/5_2/stock.py:20–22  ·  view source on GitHub ↗
(cls, row)

Source from the content-addressed store, hash-verified

18
19 @classmethod
20 def from_row(cls, row):
21 values = [func(val) for func, val in zip(cls._types, row)]
22 return cls(*values)
23
24 @property
25 def shares(self):

Callers 2

make_recordMethod · 0.45
csv_as_instancesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected