[Python-ideas] priorityqueue, sortedlist in collections?

Oleg Broytmann phd at phd.pp.ru
Fri Mar 2 20:05:24 CET 2007

On Fri, Mar 02, 2007 at 12:45:57PM -0600, Collin Winter wrote:
> I would be incredibly surprised if
> for x in queue:
>     ....
> destroyed the queue. __iter__ should be implemented non-destructively.

   Impossible for external streams such as pipes and sockets.

     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list