Skip to content

Commit 5f35f9b

Browse files
gh-137239: Add *_max functions to heapq.__all__ (gh-137241)
1 parent dc05d47 commit 5f35f9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Lib/heapq.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@
126126
From all times, sorting has always been a Great Art! :-)
127127
"""
128128

129-
__all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'merge',
130-
'nlargest', 'nsmallest', 'heappushpop']
129+
__all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'heappushpop',
130+
'heappush_max', 'heappop_max', 'heapify_max', 'heapreplace_max',
131+
'heappushpop_max', 'nlargest', 'nsmallest', 'merge']
131132

132133
def heappush(heap, item):
133134
"""Push item onto heap, maintaining the heap invariant."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:mod:`heapq`: Update :data:`!heapq.__all__` with ``*_max`` functions.

0 commit comments

Comments
 (0)