Berker Peksag added the comment:
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!
----------
nosy: +berker.peksag
resolution: -> rejected
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com