[issue18591] threading.Thread.run returning a result

2016-04-18 Thread Berker Peksag
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

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
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

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
James Lu added the comment: run's calling function needs to return. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18591 ___ ___

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread Antoine Pitrou
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