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

Method __init__

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

Source from the content-addressed store, hash-verified

134print("Example 10")
135class GoodWay(TimesSevenCorrect, PlusNineCorrect):
136 def __init__(self, value):
137 super().__init__(value)
138
139foo = GoodWay(5)
140print("Should be 7 * (5 + 9) = 98 and is", foo.value)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected