An improvement to Queue

Michael Abbott michael at rcp.co.uk
Thu Jan 31 10:14:19 EST 2002


Michael Abbott <michael at rcp.co.uk> wrote in
news:Xns91A793581DD79michaelrcpcouk at 194.238.50.13: 

> 1.  The Queue.get() method be modified to return a flag indicating
> whether the queue has just changed state from empty to non-empty.  This
> allows the generating process to know whether a "wake-up" signal needs
> to be passed to the client thread, and is useful for non-blocking use
> of the queue. 

Oops.

For Queue.get() please read Queue.put(), otherwise this makes no sense 
whatsoever.

Sorry about that!



More information about the Python-list mailing list