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

Class IntegerNodeAlt

example_code/item_049.py:152–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151print("Example 11")
152class IntegerNodeAlt(NodeAlt):
153 def __init__(self, value):
154 self.value = value
155
156 def evaluate(self):
157 return self.value
158
159
160 def pretty(self):
161 return repr(self.value)
162
163
164print("Example 12")

Callers 1

item_049.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected