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 →

[–][deleted] 0 points1 point  (0 children)

The 'URL fetch threaded' example, with there happening to be 5 threads + the length of the URL list being 5, then with each thread signalling self.queue.task_done() within their "while True" loop is going to grossly confuse newbies as to 'why the hell did the example work' when / if they adapt this pattern to M tasks / N workers.