MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

binary_search_tree.py:4–9  ·  view source on GitHub ↗

Initialising a node

(self, info)

Source from the content-addressed store, hash-verified

2 """Class for node of a tree"""
3
4 def __init__(self, info):
5 """Initialising a node"""
6 self.info = info
7 self.left = None
8 self.right = None
9 # self.level = None
10
11 def __str__(self):
12 return str(self.info)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected