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

Method __init__

example_code/item_049.py:153–154  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

151print("Example 11")
152class IntegerNodeAlt(NodeAlt):
153 def __init__(self, value):
154 self.value = value
155
156 def evaluate(self):
157 return self.value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected