':type parent: CaperNode
:type weight: float'

def __init__(self, closure, parent=None, match=None):

    self.closure = closure
    self.parent = parent
    self.match = match
    self.finished_groups = []
