def stop(self, timeout=None): # noqa ''' We need to terminate and join all threads, close all comunication channels, etc. But we trust on the correct invocation of the finalizers to do all this, and thus here only forward the stop request to the base class. ''' # FIXME: implement timeout, or remove parameter self._log.info('stop %s (%s : %s) [%s]', self.uid, os.getpid(), ru.get_thread_name(), ru.get_caller_name()) self._term.set() self._finalize()
def raise_something(): print '%s wants an exception' % ru.get_caller_name() raise RuntimeError('oops')
def inner_4(arg_1, arg_2): print ru.get_caller_name()
def inner_4(arg_1, arg_2): # pylint: disable=W0613 print(ru.get_caller_name())