Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ __init__
Method
__init__
Solutions/6_3/stock.py:6–7 ·
view source on GitHub ↗
(self, name, shares, price)
Source
from the content-addressed store, hash-verified
4
5
class
Stock(Structure):
6
def
__init__(self, name, shares, price):
7
self._init()
8
9
@property
10
def
cost(self):
Callers
nothing calls this directly
Calls
1
_init
Method · 0.45
Tested by
no test coverage detected