Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ stock.py
File
stock.py
Solutions/3_8/stock.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# stock.py
2
3
class
Stock:
4
__slots__ = (
'name'
,
'_shares'
,
'_price'
)
Callers
nothing calls this directly
Calls
3
print_table
Function · 0.90
create_formatter
Function · 0.90
PortfolioFormatter
Class · 0.85
Tested by
no test coverage detected