Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PriorityQueue
1 parent 0f7a972 commit 350ba7cCopy full SHA for 350ba7c
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