Way to wait for all threads to finish in Python

Not sure if it's the best way, but I found this example in an webarchive page and it kind of makes more sense than keeping a list of the threads and cycling all the time checking if they are active or not: while threading.activeCount()>1:    sleep(1)Not sure if this works, but have to try :)Posted by email from nocivus (posterous)