MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __str__

Method __str__

Solutions/2_4/mutint.py:14–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 self.value = value
13
14 def __str__(self):
15 return str(self.value)
16
17 def __repr__(self):
18 return f'MutInt({self.value!r})'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected