]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
authorRaymond Hettinger <python@rcn.com>
Mon, 4 Mar 2013 07:20:31 +0000 (02:20 -0500)
committerRaymond Hettinger <python@rcn.com>
Mon, 4 Mar 2013 07:20:31 +0000 (02:20 -0500)
commitb6c65b2affec6bf194c26f8e94ed06420014efc0
tree6f068587554d3d410987a244af1e489d0c9282c4
parent6386e17f392d984fa5d16df4c6c74314aecbb588
Issue #16098:  Update heapq.nsmallest to use the same algorithm as nlargest.

This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
Lib/heapq.py