<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Jan 19, 2010 at 11:10 PM, Simon Brunning <span dir="ltr"><<a href="mailto:simon@brunningonline.net">simon@brunningonline.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2010/1/19 cool-RR <<a href="mailto:cool-rr@cool-rr.com">cool-rr@cool-rr.com</a>>:<br>
<div class="im">> Is there a reason that queues don't have an `__iter__` method? I mean both<br>
> `Queue.Queue` and `multiprocessing.Queue`.<br>
<br>
</div>Could it be made threadsafe?<br>
<font color="#888888"><br>
--<br>
Cheers,<br>
Simon B.<br>
</font></blockquote></div><br>For me, iterating on the queue means just calling `get` repeatedly until it's empty. Now that I think about it, maybe this is not the most obvious meaning? I'm not sure now.<br><br>Ram.<br>

</div>