mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Install C version of heapq.nsmallest().
This commit is contained in:
parent
c929766361
commit
2e3dfaf707
4 changed files with 182 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue