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

Method __init__

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

Source from the content-addressed store, hash-verified

96print("Example 7")
97class TimesSeven(MyBaseClass):
98 def __init__(self, value):
99 MyBaseClass.__init__(self, value)
100 self.value *= 7
101
102class PlusNine(MyBaseClass):
103 def __init__(self, value):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected