A note on heapq module

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Tue Jan 16 12:58:50 EST 2007


I think the sort has to be simplified, otherwise it can't keep the heap
invariant...

def sort(self):
    self.h.sort()

Bye,
bearophile




More information about the Python-list mailing list