This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2015年02月28日 16:37 by eli.bendersky, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue23549.1.patch | eli.bendersky, 2015年02月28日 16:47 | |||
| issue23549.2.patch | eli.bendersky, 2015年02月28日 21:48 | |||
| Messages (7) | |||
|---|---|---|---|
| msg236895 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2015年02月28日 16:37 | |
The heapq documentation has this paragraph after the doc of nsmallest: The latter two functions perform best for smaller values of n. For larger values, it is more efficient to use the sorted() function. Also, when n==1, it is more efficient to use the built-in min() and max() functions. This is confusing as it suggests to use min() on a heap to find the minimal element. heap[0] is the minimal element, but this is only mentioned at the very top - so you need to read the doc of the entire module to find it. Nothing in the docs of methods suggests it. |
|||
| msg236897 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2015年02月28日 16:47 | |
Proposed patch (generated vs. the 3.4 docs) is attached |
|||
| msg236915 - (view) | Author: Martin Panter (martin.panter) * (Python committer) | Date: 2015年02月28日 21:46 | |
"Smalest" is spelt with a double L. |
|||
| msg236916 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2015年02月28日 21:48 | |
Good catch. Attaching a new version of the patch with the typo fixed. |
|||
| msg237179 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2015年03月04日 14:35 | |
Raymond - gentle ping. Do you see a reason not to check this in? |
|||
| msg238117 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年03月15日 03:17 | |
New changeset 8ddda7d1f8e3 by Eli Bendersky in branch '3.4': Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element https://hg.python.org/cpython/rev/8ddda7d1f8e3 New changeset 642247a536d5 by Eli Bendersky in branch 'default': Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element https://hg.python.org/cpython/rev/642247a536d5 |
|||
| msg238118 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2015年03月15日 03:20 | |
New changeset b61578bb5014 by Eli Bendersky in branch '2.7': Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element https://hg.python.org/cpython/rev/b61578bb5014 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:13 | admin | set | github: 67737 |
| 2015年03月15日 03:20:33 | eli.bendersky | set | status: open -> closed resolution: fixed |
| 2015年03月15日 03:20:17 | python-dev | set | messages: + msg238118 |
| 2015年03月15日 03:17:21 | python-dev | set | nosy:
+ python-dev messages: + msg238117 |
| 2015年03月04日 14:35:07 | eli.bendersky | set | messages: + msg237179 |
| 2015年02月28日 21:48:40 | eli.bendersky | set | files:
+ issue23549.2.patch messages: + msg236916 |
| 2015年02月28日 21:46:58 | martin.panter | set | nosy:
+ martin.panter messages: + msg236915 |
| 2015年02月28日 20:16:57 | rhettinger | set | assignee: docs@python -> rhettinger nosy: + rhettinger |
| 2015年02月28日 16:47:23 | eli.bendersky | set | files:
+ issue23549.1.patch keywords: + patch messages: + msg236897 |
| 2015年02月28日 16:37:41 | eli.bendersky | create | |