def clear(self, *signals):
        """Clears all callbacks for a particular signal or signals"""

        if signals:
            for signal in signals:
                self._check_signal_is_registered(signal)
        else:
            signals = self._signal_registry.keys()

        for signal in signals:
            self._signal_registry[signal].clear()
Clears all callbacks for a particular signal or signals
recipes/Python/580764_Simple_signal_library_similar_PyQT/recipe-580764.py