Install C version of heapq.nsmallest().

This commit is contained in:
Raymond Hettinger 2004-06-13 05:26:33 +00:00
parent c929766361
commit 2e3dfaf707
4 changed files with 182 additions and 17 deletions

View file

@ -300,7 +300,7 @@ def _siftup(heap, pos):
# If available, use C implementation
try:
from _heapq import heappush, heappop, heapify, heapreplace
from _heapq import heappush, heappop, heapify, heapreplace, nlargest, nsmallest
except ImportError:
pass