mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Remove Queue.empty() and Queue.full() in favor of using qsize() or trapping the Empty and Full exceptions.
This commit is contained in:
parent
d32ed6f511
commit
da3caedc55
5 changed files with 37 additions and 63 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue