Antoon Pardon <antoon.par...@rece.vub.ac.be>:

> And when I need some personal object as a key, I can avoid the
> duplication by using some kind of cmp cache when I implement __lt__
> and family.

Yes, that's what you can do in rare, extreme cases where key comparison
takes a long time. For caching, you will simply need to require that
keys stay immutable wrt comparing.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to