A note on heapq module

Steven Bethard steven.bethard at gmail.com
Wed Jan 17 14:07:38 EST 2007


Antoon Pardon wrote:
> For me, your class has the same drawback as the heappush, heappop
> procedurers: no way to specify a comparision function.

Agreed.  I'd love to see something like ``Heap(key=my_key_func)``.

STeVe



More information about the Python-list mailing list