mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
[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:
parent
7b203aa2ff
commit
a03dd74c94
@ -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."""
|
||||
|
||||
@ -0,0 +1 @@
|
||||
:mod:`heapq`: Update :data:`!heapq.__all__` with ``*_max`` functions.
|
||||
Loading…
x
Reference in New Issue
Block a user