Python: thread est toujours en cours d'exécution

Comment puis-je savoir si un thread est terminé? J'ai essayé le suivant, mais threads_list ne contient pas le thread qui a été commencé, même si je sais que le fil est toujours en cours d'exécution.

import thread
import threading

id1 = thread.start_new_thread(my_function, ())
#wait some time
threads_list = threading.enumerate()
# Want to know if my_function() that was called by thread id1 has returned 

def my_function()
    #do stuff
    return

OriginalL'auteur user984003 | 2013-02-25