[3.14] gh-137239: Add *_max functions to heapq.__all__ (gh-137241) (#137256)

gh-137239: Add *_max functions to heapq.__all__ (gh-137241)
(cherry picked from commit 5f35f9b8fad50670604552062c1df8fbdff835ab)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-10-07 19:52:07 +02:00 committed by GitHub
parent 7b203aa2ff
commit a03dd74c94
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."""

View File

@ -0,0 +1 @@
:mod:`heapq`: Update :data:`!heapq.__all__` with ``*_max`` functions.