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

Class IntegerNodeAlt

example_code/item_050.py:58–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 raise NotImplementedError
57
58class IntegerNodeAlt(NodeAlt):
59 def __init__(self, value):
60 self.value = value
61
62 def evaluate(self):
63 return self.value
64
65 def pretty(self):
66 return repr(self.value)
67
68class AddNodeAlt(NodeAlt):
69 def __init__(self, left, right):

Callers 1

item_050.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected