def clear_callbacks(self, name, index=None):
        """clear 1 or all callbacks for a symbol
        """
        parent, child = self.get_parent(name)
        if child is not None and (parent, child) in self.__callbacks:
            if index is not None and index <= len(self.__callbacks[(parent, child)]):
                self.__callbacks[(parent, child)].pop(index)
            else:
                while self.__callbacks[(parent, child)]:
                    self.__callbacks[(parent, child)].pop()
dataset/ETHPy150Open xraypy/xraylarch/lib/symboltable.py/SymbolTable.clear_callbacks/original