

def _remove(self, child):
    l_old = len(self.children)
    self.children = [(z, c) for (z, c) in self.children if (c != child)]
    if (l_old == len(self.children)):
        raise Exception(('Child not found: %s' % str(child)))
    if self.is_running:
        child.on_exit()

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode._remove/original