Jean-Paul Calderone <[EMAIL PROTECTED]> writes:
> Instead of putting multiple sentinels, just pre-construct the iterator
> object.
>     work = iter(q.get, sentinel)
> Re-use the same iterator in each thread, and you'll get the behavior
> you're after.

Whaaat???!!!!  Can I dooooo that?  It looks like it depends on the
insides of iter being thread-safe, which I wouldn't have been
willing to assume.  Am I missing something?  Thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to