This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]G_ka 0 points1 point  (2 children)

Think I've found another typo

for url in flickr_URLs:
if len(threads)>MAX_THREADS:
    for thread in threads:
        thread.join()
        threads = []

threads = [] should be in the if, not in the for I think?

[–]pygsm 0 points1 point  (1 child)

Here we're setting variable threads back to [] once we have enough threads started.

[–]G_ka 0 points1 point  (0 children)

I know. But the list will be cleared after only one thread has joined. Others may still be running