[New-bugs-announce] [issue13742] Add a key parameter (like sorted) to heapq.merge

Simon Sapin report at bugs.python.org
Mon Jan 9 11:35:42 CET 2012


New submission from Simon Sapin <simon.sapin at kozea.fr>:

Hi,

The attached patch adds a 'key' optional parameter to the heapq.merge function that behaves as in sorted().

Related discussion: http://mail.python.org/pipermail/python-ideas/2012-January/013295.html

This is my first contribution to CPython.

----------
components: Library (Lib)
files: heapq_merge_key.patch
keywords: patch
messages: 150927
nosy: SimonSapin, rhettinger
priority: normal
severity: normal
status: open
title: Add a key parameter (like sorted) to heapq.merge
type: enhancement
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file24184/heapq_merge_key.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13742>
_______________________________________


More information about the New-bugs-announce mailing list