On Mar 8, 9:02 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>,
>
> [EMAIL PROTECTED] wrote:
> > I wanted to have a heap of custom objects, and in different heaps I
> > wanted to have the weights for my elements differently. So, I modified
> > the heapq module to accept key arguments also.
>
> I would have just used tuples of the form (weight, obj) with the original
> `heapq` module.
>
> Ciao,
>         Marc 'BlackJack' Rintsch

Thanks. I will go with tuples itself.
-
Suresh

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to