Normally we code it like this:
while True:
job = queue.get()
...
But is it also possible to do something in the lines of:
for job in queue.get():
#do stuff to job
The real reason why I want to do that is because I wanted to use python-progressbar's auto detect maxval. They do it like for this in progressbar(that):