Remove Queue.empty() and Queue.full() in favor of using qsize() or trapping the Empty and Full exceptions.

This commit is contained in:
Raymond Hettinger 2008-01-14 21:39:24 +00:00
parent d32ed6f511
commit da3caedc55
5 changed files with 37 additions and 63 deletions

View file

@ -53,18 +53,6 @@ See the source code for details. The public methods are:
this number is not reliable.
.. method:: Queue.empty()
Return ``True`` if the queue is empty, ``False`` otherwise. Because of
multithreading semantics, this is not reliable.
.. method:: Queue.full()
Return ``True`` if the queue is full, ``False`` otherwise. Because of
multithreading semantics, this is not reliable.
.. method:: Queue.put(item[, block[, timeout]])
Put *item* into the queue. If optional args *block* is true and *timeout* is