ryles <ryle...@gmail.com> writes:
> >>> # Oh... yeah. I really *did* want 'is None' and not '== None'
> >>> which iter() will do. Sorry guys!
> 
> Please don't let this happen to you too ;)

None is a perfectly good value to put onto a queue.  I prefer
using a unique sentinel to mark the end of the stream:

   sentinel = object()
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to