def obs_del(self, observer):
        """Remove an observer from this object."""
        if self.__obs_lock: self.__obs_lock.acquire()
        try:
            del self._observers[observer]
        finally:
            if self.__obs_lock: self.__obs_lock.release()
Remove an observer from this object.
recipes/Python/576962_Flexible_observer_pattern/recipe-576962.py