Closed
Description
Feature or enhancement
Proposal:
def _heappush_max(heap, item):
"""Maxheap version of a heappush."""
heap.append(item)
_siftdown_max(heap, 0, len(heap)-1)
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
conversation on making max heap functions public