Author berker.peksag
Recipients James.Lu, berker.peksag, pitrou
Date 2016-04-18.23:23:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461021829.08.0.493109534917.issue18591@psf.upfronthosting.co.za>
In-reply-to
Content
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
2016-04-18 23:23:49berker.peksagsetrecipients: + berker.peksag, pitrou, James.Lu
2016-04-18 23:23:49berker.peksagsetmessageid: <1461021829.08.0.493109534917.issue18591@psf.upfronthosting.co.za>
2016-04-18 23:23:49berker.peksaglinkissue18591 messages
2016-04-18 23:23:48berker.peksagcreate