MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __init__

Method __init__

example_code/item_053.py:164–166  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

162
163class ImplicitTrisect(MyBaseClass):
164 def __init__(self, value):
165 super().__init__(value)
166 self.value /= 3
167
168assert ExplicitTrisect(9).value == 3
169assert AutomaticTrisect(9).value == 3

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected