thread return code
Alf P. Steinbach
alfps at start.no
Tue Jan 19 11:25:55 CET 2010
> I'm using threading module in Python 2.6.4. I'm using thread's join()
> 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
Cheers & hth.,
More information about the Python-list