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

Method __init__

example_code/item_054.py:76–79  ·  view source on GitHub ↗
(self, value, left=None, right=None)

Source from the content-addressed store, hash-verified

74print("Example 2")
75class BinaryTree(ToDictMixin):
76 def __init__(self, value, left=None, right=None):
77 self.value = value
78 self.left = left
79 self.right = right
80
81
82print("Example 3")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected