-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
With the following example, if I run it and then comment out the put loop and then run it again, I get 99 printed.
def worker():
while True:
try:
item = q.get()
print item
except:
pass
finally:
q.task_done()
for i in range(3):
t = Thread(target=worker)
t.daemon = True
t.start()
for item in range(100):
q.put(item)
Metadata
Metadata
Assignees
Labels
No labels