This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Prashant.Sharma
Recipients Prashant.Sharma, gdr@garethrees.org
Date 2014-03-13.09:45:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394703948.27.0.88570980883.issue20905@psf.upfronthosting.co.za>
In-reply-to
Content
Hey Gareth,

"add Key=" approach also solves the purpose. The purpose is to be able to use heapq as max heap too conveniently. (I just wish python had minmaxheap too, but felt that is too much to ask for.) It is a very common usage and usual tricks of inverting the values( or negating) isn't great for all purposes. 

I am happy to redo the patch, if that is an acceptable solution. 

On a side note, did we also discuss about making some public functions for using heapq as max heap. (There are a few internal functions for the same).
History
Date User Action Args
2014-03-13 09:45:48Prashant.Sharmasetrecipients: + Prashant.Sharma, gdr@garethrees.org
2014-03-13 09:45:48Prashant.Sharmasetmessageid: <1394703948.27.0.88570980883.issue20905@psf.upfronthosting.co.za>
2014-03-13 09:45:48Prashant.Sharmalinkissue20905 messages
2014-03-13 09:45:47Prashant.Sharmacreate