Join a thread and get the return value of a function

mattia gervaz at gmail.com
Thu Dec 24 10:02:13 EST 2009


Il Fri, 25 Dec 2009 00:35:55 +1100, Lie Ryan ha scritto:

> On 12/25/2009 12:23 AM, mattia wrote:
>> Hi all, is there a way in python to get back the value of the function
>> passed to a thread once the thread is finished? Something like
>> pthread_join() in C?
>>
>> Thanks, Mattia
> 
> use a Queue to pass the value out?

Yes, it can be a solution, but are you indirectly telling me that there 
is no way then?



More information about the Python-list mailing list