<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disconnect(self, func=None):
 """Disconnect a function call to the signal. If None, all connections are disconnected"""

        if func is None:
            self._connections = []
        else:
            self._connections.remove(func)