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

Method __init__

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

Source from the content-addressed store, hash-verified

94print("Example 4")
95class BinaryTreeWithParent(BinaryTree):
96 def __init__(
97 self,
98 value,
99 left=None,
100 right=None,
101 parent=None,
102 ):
103 super().__init__(value, left=left, right=right)
104 self.parent = parent
105
106 def _traverse(self, key, value):
107 if (

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected