Quoting Cameron Simpson <c...@zip.com.au>: > | And as it happens I have an IterableQueue class right here which does > | _exact_ what was just described. You're welcome to it if you like. > | Added bonus is that, as the name suggests, you can use the class as > | an iterator: > | for item in iterq: > | ... > | The producer calls iterq.close() when it's done. > > Someone asked, so code appended below. > [...]
Thank you!. I tested it, and it seems to work... and having the queue be an iterable is a plus. Thank you, Cameron & MRAB! -- Luis Zarrabeitia Facultad de Matemática y Computación, UH http://profesores.matcom.uh.cu/~kyrie -- Participe en Universidad 2010, del 8 al 12 de febrero de 2010 La Habana, Cuba http://www.universidad2010.cu -- http://mail.python.org/mailman/listinfo/python-list