Op 2005-09-09, Leo Jay schreef <python.leojay at gmail.com>: > Dear all, > > i would like to get the return value of all threads > > e.g. > def foo(num): > if num>10: > return 1 > elif num>50: > return 2 > else > return 0 > > > after i invoked > t = thread.start_new_thread(foo,(12,)) > how to get the return value of `foo'? > > Thanks > Maybe you should have a look at the Future class http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/84317 -- Antoon Pardon
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4