[Python-ideas] A key parameter for heapq.merge

Raymond Hettinger raymond.hettinger at gmail.com
Mon Jan 9 08:36:41 CET 2012

On Jan 8, 2012, at 9:58 PM, Simon Sapin wrote:

> According to its own documentation, the merge() function in the heapq module is similar to sorted(). However, it has none of the key and reverse parameters that sorted() has. I think they could be just as useful as in sorted().

A key-argument could be useful but a reverse parameter doesn't make as much sense.

If you want to make a patch, add it to the tracker and assign it to me for review.


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

More information about the Python-ideas mailing list