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
Date 2014-03-13.08:18:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394698697.56.0.738511180994.issue20905@psf.upfronthosting.co.za>
In-reply-to
Content
It would be more convenient to extend heapq to support user defined comparators. 

Default can be cmp_lt in which case they behave as they do now. 

Caveat:
What happens if uses switches comparator between calls to push or pop. The expected behavior can be unpredictable and should be obvious to the user of the API. It might also be good to state this obvious, if people here agree. 

P.S. I am really new to python world, forgive me for any kind of stupidity. Criticism and comments is what I am looking for here !
History
Date User Action Args
2014-03-13 08:18:17Prashant.Sharmasetrecipients: + Prashant.Sharma
2014-03-13 08:18:17Prashant.Sharmasetmessageid: <1394698697.56.0.738511180994.issue20905@psf.upfronthosting.co.za>
2014-03-13 08:18:17Prashant.Sharmalinkissue20905 messages
2014-03-13 08:18:17Prashant.Sharmacreate