cpython/Misc/NEWS.d/next/Library/2025-03-01-15-00-00.gh-issue-110067.1ad3as.rst
Stan Ulbrych f5b784741d
gh-110067: Make max heap methods public and add missing ones (GH-130725)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-05-05 17:52:49 +02:00

5 lines
348 B
ReStructuredText

Make :mod:`heapq` max-heap functions :func:`heapq.heapify_max`, :func:`heapq.heappush_max`,
:func:`heapq.heappop_max`, and :func:`heapq.heapreplace_max` public.
Previous underscored naming is kept for backwards compatibility.
Additionally, the missing function :func:`heapq.heappushpop_max` has been added
to both the C and Python implementations.