]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-137239: Add *_max functions to heapq.__all__ (gh-137241)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Wed, 30 Jul 2025 21:12:14 +0000 (23:12 +0200)
committerGitHub <noreply@github.com>
Wed, 30 Jul 2025 21:12:14 +0000 (16:12 -0500)
Lib/heapq.py
Misc/NEWS.d/next/Library/2025-07-30-17-42-36.gh-issue-137239.qSpj32.rst [new file with mode: 0644]

index 6ceb211f1ca2aedc5cbcbe4ba3a79d0a431f346b..17f62dd2d5839b9c7f4f1d3583ae01f215d57f0f 100644 (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."""
diff --git a/Misc/NEWS.d/next/Library/2025-07-30-17-42-36.gh-issue-137239.qSpj32.rst b/Misc/NEWS.d/next/Library/2025-07-30-17-42-36.gh-issue-137239.qSpj32.rst
new file mode 100644 (file)
index 0000000..3be583e
--- /dev/null
@@ -0,0 +1 @@
+:mod:`heapq`: Update :data:`!heapq.__all__` with ``*_max`` functions.