We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PriorityQueue
1 parent 95e4c76 commit f3816fbCopy full SHA for f3816fb
Doc/library/queue.rst
@@ -57,8 +57,8 @@ The :mod:`queue` module defines the following classes and exceptions:
57
*maxsize* is less than or equal to zero, the queue size is infinite.
58
59
The lowest valued entries are retrieved first (the lowest valued entry is the
60
- one returned by ``sorted(list(entries))[0]``). A typical pattern for entries
61
- is a tuple in the form: ``(priority_number, data)``.
+ one that would be returned by ``min(entries)``). A typical pattern for
+ entries is a tuple in the form: ``(priority_number, data)``.
62
63
If the *data* elements are not comparable, the data can be wrapped in a class
64
that ignores the data item and only compares the priority number::
0 commit comments