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

Method __init__

example_code/item_050.py:59–60  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

57
58class IntegerNodeAlt(NodeAlt):
59 def __init__(self, value):
60 self.value = value
61
62 def evaluate(self):
63 return self.value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected