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

Method __int__

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

Source from the content-addressed store, hash-verified

63
64 # Conversions to int() and float()
65 def __int__(self):
66 return int(self.value)
67
68 def __float__(self):
69 return float(self.value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected