[issue18591] threading.Thread.run returning a result
Berker Peksag
report at bugs.python.org
Mon Apr 18 19:23:49 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue18591>
_______________________________________
More information about the Python-bugs-list
mailing list