Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106745
Show key headers only | View raw
Antoon Pardon <antoon.pardon@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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: how to convert code that uses cmp to python3 Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2016-04-09 18:03 +0200 Re: how to convert code that uses cmp to python3 Marko Rauhamaa <marko@pacujo.net> - 2016-04-09 19:32 +0300
csiph-web