]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element
authorEli Bendersky <eliben@gmail.com>
Sun, 15 Mar 2015 03:20:36 +0000 (20:20 -0700)
committerEli Bendersky <eliben@gmail.com>
Sun, 15 Mar 2015 03:20:36 +0000 (20:20 -0700)
commit9872ad46d5c8b91caba942e87d9fe6d00843a518
treecddc77f3cada63670bc123b6d578eb794b21dc11
parent251aede2f23f13b33dc4fc28bb18a5f416fad345
Issue #23549: Clarify confusion in heapq doc - accessing the mininmal element

The current documentation only mentions heap[0] as the smallest element in the
beginning, and not in any of the methods' docs. There's no method to access the
minimal element without popping it, and the documentation of nsmallest is
confusing because it may suggest that min() is the way to go for n==1.
default
Doc/library/heapq.rst