> Hmm, perhaps when using sets as work queues?

A number of comments:

- it's somewhat confusing to use a set as a *queue*, given
  that it won't provide FIFO semantics.
- there are more appropriate and direct container structures
  available, including a dedicated Queue module (even though
  this might be doing to much with its thread-safety).
- if you absolutely want to use a set as a work queue,
  then the .pop() method should be sufficient, right?

Regards,
Martin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to