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

Method __init__

example_code/item_049.py:166–168  ·  view source on GitHub ↗
(self, left, right)

Source from the content-addressed store, hash-verified

164print("Example 12")
165class AddNodeAlt(NodeAlt):
166 def __init__(self, left, right):
167 self.left = left
168 self.right = right
169
170 def evaluate(self):
171 left = self.left.evaluate()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected