thread return code
Alf P. Steinbach
alfps at start.no
Tue Jan 19 05:25:55 EST 2010
* Rajat:
> Hi,
>
> I'm using threading module in Python 2.6.4. I'm using thread's join()
> method.
>
> On the new thread I'm running a function which returns a code at the
> end. Is there a way I access that code in the parent thread after
> thread finishes? Simply, does join() could get me that code?
join() always returns None.
But you can store the code in the thread object, and then access it after the
join().
Cheers & hth.,
- Alf
More information about the Python-list
mailing list