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

Method __init__

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

Source from the content-addressed store, hash-verified

148print("Example 12")
149class ExplicitTrisect(MyBaseClass):
150 def __init__(self, value):
151 super(ExplicitTrisect, self).__init__(value)
152 self.value /= 3
153
154assert ExplicitTrisect(9).value == 3
155

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected