Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit350ba7c

Browse files
authored
gh-101777: MakePriorityQueue docs slightly clearer (#102026)
Adjust wording slightly, and use min(entries) instead ofsorted(list(entries))[0] as an example.
1 parent0f7a972 commit350ba7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Doc/library/queue.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ The :mod:`queue` module defines the following classes and exceptions:
5757
*maxsize* is less than or equal to zero, the queue size is infinite.
5858

5959
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)``.
60+
onethat would bereturned by ``min(entries)``). A typical pattern for
61+
entriesis a tuple in the form: ``(priority_number, data)``.
6262

6363
If the *data* elements are not comparable, the data can be wrapped in a class
6464
that ignores the data item and only compares the priority number::

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp