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

Method __init__

Solutions/6_2/stock.py:7–8  ·  view source on GitHub ↗
(self, name, shares, price)

Source from the content-addressed store, hash-verified

5class Stock(Structure):
6 _fields = ('name', 'shares', 'price')
7 def __init__(self, name, shares, price):
8 self._init()
9
10 @property
11 def cost(self):

Callers

nothing calls this directly

Calls 1

_initMethod · 0.45

Tested by

no test coverage detected