Пример #1
0
 def __init__(self):
     Node.__init__(self)
     self.children = [] # mostly kvpairs
     self.namebearing = True
Пример #2
0
 def reparent(self, item): # should not be necessary
     if isinstance(item, KVPair):
         Node.reparent(self, item.key)
         Node.reparent(self, item.value)
     else:
         Node.reparent(self, item)