]> granicus.if.org Git - python/commit
Docs: Add note regarding "reversed" flag in heapq.merge (#300)
authorAdam Niederer <AdamNiederer@users.noreply.github.com>
Sun, 5 Mar 2017 16:56:05 +0000 (11:56 -0500)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 5 Mar 2017 16:56:05 +0000 (08:56 -0800)
commitb4e1b92aabcd302ac54fa58cd4fee8a138dbb5aa
tree01308359766ecefed1a5e222dd5f9a3fbb6eff2f
parent2a7bddaab7d6e1f7b243cdbb4fa6f6c8e266b18d
Docs: Add note regarding "reversed" flag in heapq.merge (#300)

The docs for `heapq.merge` are a little misleading. Iterables passed
into heapq.merge with the reversed flag enabled must be sorted from
largest to smallest to achieve the desired sorting effect, but the
previous paragraph states that they should be sorted from smallest
to largest.
Doc/library/heapq.rst