TimeoutQueue.py

Tim Peters tim.one at comcast.net
Fri Jun 21 18:32:33 EDT 2002


[Chris Liechti]
> Anyone ever needed a Queue with timeout?

Yes.  I encourage you to submit a patch to SourceForge, adding optional
timeout arguments to the std Queue module (include the requisite doc changes
and test suite changes too, and I'll secretly ram it in <wink>).  Queue was
written long before threading.py, and, as you noticed, the blocking
operations in threading.py generally do support optional timeouts.  They're
a Good Idea for all blocking operations.






More information about the Python-list mailing list