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
New submission from James Lu:
I have attached a *possible* new version of threading.py
that returns the value of the target.
--
components: Library (Lib)
files: threading.py
messages: 193899
nosy: James.Lu
priority: normal
severity: normal
status: open
title: threading.Thread.run
James Lu added the comment:
run's calling function needs to return.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18591
___
___
Antoine Pitrou added the comment:
Hi! I'm not sure what feature exactly you're proposing here, but please follow
the devguide's guidelines to submit a proper patch:
http://docs.python.org/devguide/patch.html
And more generally:
http://docs.python.org/devguide/
--
nosy: +pitrou