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

Method __init__

Solutions/3_3/stock.py:5–8  ·  view source on GitHub ↗
(self, name, shares, price)

Source from the content-addressed store, hash-verified

3class Stock:
4 types = (str, int, float)
5 def __init__(self, name, shares, price):
6 self.name = name
7 self.shares = shares
8 self.price = price
9
10 @classmethod
11 def from_row(cls, row):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected