docs: def remove_handler(self, handler):
          """
          Remove a handler from the list.
  
          handler - The handler (as returned by add_handler) to remove.
  
          Returns True on success, False otherwise.
          """
          try:
              self._events[handler.type].remove(handler)
              return True
          except ValueError:
              return False