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)

The article is rather old, but since this is still in the official python docs, it should work. I love python :D

About

Genius. Incredible. Remarkable. Awesome. Cool. On top of that, I am extremely humble too.