A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/331574.html below:

how to get the return value of a thread?

how to get the return value of a thread? how to get the return value of a thread?Leo Jay python.leojay at gmail.com
Fri Sep 9 07:58:25 EDT 2005
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

-- 
Best Regards,
Leo Jay

More information about the Python-list mailing list

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