Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ sell
Method
sell
Solutions/6_5/validate.py:100–101 ·
view source on GitHub ↗
(self, nshares)
Source
from the content-addressed store, hash-verified
98
return
self.shares * self.price
99
100
def
sell(self, nshares):
101
self.shares -= nshares
102
103
sell = ValidatedFunction(sell)
# Broken
104
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected