mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
gh-137239: Add *_max functions to heapq.__all__ (gh-137241)
This commit is contained in:
parent
dc05d475c1
commit
5f35f9b8fa
2 changed files with 4 additions and 2 deletions
|
|
@ -126,8 +126,9 @@ Believe me, real good tape sorts were quite spectacular to watch!
|
|||
From all times, sorting has always been a Great Art! :-)
|
||||
"""
|
||||
|
||||
__all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'merge',
|
||||
'nlargest', 'nsmallest', 'heappushpop']
|
||||
__all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'heappushpop',
|
||||
'heappush_max', 'heappop_max', 'heapify_max', 'heapreplace_max',
|
||||
'heappushpop_max', 'nlargest', 'nsmallest', 'merge']
|
||||
|
||||
def heappush(heap, item):
|
||||
"""Push item onto heap, maintaining the heap invariant."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue