kolejka Python nie jest pusta
while not q.empty():
row = q.get()
# do something with row
q.task_done()
Nervous Nightingale
while not q.empty():
row = q.get()
# do something with row
q.task_done()