Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ __repr__
Method
__repr__
Solutions/6_5/validate.py:93–94 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
91
self.price = price
92
93
def
__repr__(self):
94
return
f
'Stock({self.name!r}, {self.shares!r}, {self.price!r})'
95
96
@property
97
def
cost(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected