gh-137239: Add *_max functions to heapq.__all__ (gh-137241)

This commit is contained in:
Stan Ulbrych 2025-07-30 23:12:14 +02:00 committed by GitHub
parent dc05d475c1
commit 5f35f9b8fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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."""