Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ __repr__
Method
__repr__
Solutions/2_4/mutint.py:17–18 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
15
return
str(self.value)
16
17
def
__repr__(self):
18
return
f
'MutInt({self.value!r})'
19
20
def
__format__(self, fmt):
21
return
format(self.value, fmt)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected