MCPcopy Index your code
hub / github.com/dabeaz-course/python-mastery / from_row

Method from_row

Solutions/8_1/structure.py:38–40  ·  view source on GitHub ↗
(cls, row)

Source from the content-addressed store, hash-verified

36
37 @classmethod
38 def from_row(cls, row):
39 rowdata = [ func(val) for func, val in zip(cls._types, row) ]
40 return cls(*rowdata)
41
42
43 @classmethod

Callers 2

csv_as_instancesFunction · 0.45
test_from_rowMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_from_rowMethod · 0.36