[New-bugs-announce] [issue1904] Add key argument to heapq functions

Guilherme Polo report at bugs.python.org
Tue Jan 22 11:54:03 CET 2008

New submission from Guilherme Polo:

Wouldn't it be useful to add a "key" argument to some heapq functions ?
So you could construct a heap from dict items list based on the second
item of each tuple, for example.

components: Library (Lib)
messages: 61496
nosy: gpolo
severity: normal
status: open
title: Add key argument to heapq functions
type: behavior
versions: Python 2.6, Python 3.0

Tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list