What is your use case? I think this can easily be implemented by subclassing the threading.Thread class: class MyThread(threading.Thread): def run(self): # skip try...finally to make the example shorter result = None if self._target: result = self._target(*self._args, **self._kwargs) return result We can reopen this if you can share a valid use case. Thanks for the report!
History
Date
User
Action
Args
2022-04-11 14:57:48
admin
set
github: 62791
2016-04-18 23:23:49
berker.peksag
set
status: open -> closednosy: + berker.peksagmessages: + resolution: rejectedstage: resolved