def __exitfunc(self): _unregister_thread(self._thread) t = _pickSomeNonDaemonThread() while t: t.join() t = _pickSomeNonDaemonThread()
def __delete(self): _unregister_thread(self._thread)