]> granicus.if.org Git - python/commit
Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
authorRaymond Hettinger <python@rcn.com>
Tue, 5 Mar 2013 06:36:30 +0000 (01:36 -0500)
committerRaymond Hettinger <python@rcn.com>
Tue, 5 Mar 2013 06:36:30 +0000 (01:36 -0500)
commitf6b26676bc97f2f023cbfeabec5583895e9e054f
tree310f331a8e844faa02891b9e73d029e1b20bb74d
parent31584e30ab3e8d01613bb774b1e3d28e73314096
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