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

Method __init__

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

Source from the content-addressed store, hash-verified

108print("Example 8")
109class ThisWay(TimesSeven, PlusNine):
110 def __init__(self, value):
111 TimesSeven.__init__(self, value)
112 PlusNine.__init__(self, value)
113
114foo = ThisWay(5)
115print("Should be (5 * 7) + 9 = 44 but is", foo.value)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected