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

Method __init__

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

Source from the content-addressed store, hash-verified

157print("Example 13")
158class AutomaticTrisect(MyBaseClass):
159 def __init__(self, value):
160 super(__class__, self).__init__(value)
161 self.value /= 3
162
163class ImplicitTrisect(MyBaseClass):
164 def __init__(self, value):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected