[Python-ideas] Consider adding reverse argument to heapq methods.

Neil Girdhar mistersheik at gmail.com
Tue Mar 6 12:59:00 EST 2018

heapq creates and works with min-heaps.  Currently, the only way to do this 
is to use _heapify_max instead of heapify, heapq._heappop_max instead of 
heapq.heappop, etc.

These methods should be exposed using a reverse keyword argument rather 
than as private methods just like sort.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180306/34c808ee/attachment.html>

More information about the Python-ideas mailing list