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

Method __init__

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

Source from the content-addressed store, hash-verified

112print("Example 8")
113class AddNode(Node):
114 def __init__(self, left, right):
115 self.left = left
116 self.right = right
117
118 def evaluate(self):
119 left = self.left.evaluate()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected