Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ __float__
Method
__float__
Solutions/2_4/mutint.py:68–69 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
66
return
int(self.value)
67
68
def
__float__(self):
69
return
float(self.value)
70
71
# Support for indexing s[MutInt]
72
__index__ = __int__
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected