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

Class ThisWay

example_code/item_053.py:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
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 1

item_053.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected