Пример #1
0
    def __init__(self):
        """Sets the initial state of self, which includes the
                contents of sourceCollection, if it's present."""
        self._root = None
        self.computer_mark = None
        self.human_mark = None

        BTree.__init__(self, root=None, computer_mark=None, human_mark=None)
Пример #2
0
 def __init__(self, node):
     BTree.__init__(self, node)
     self.prlmb = lambda node: '({},{},{},{},{})'.format(
         node.data, node.lr_child, node.deep, node.l_max_height, node.
         r_max_height)