Paul Rubin <http://[EMAIL PROTECTED]> wrote:

> "KraftDiner" <[EMAIL PROTECTED]> writes:
> > In C++ you can specify a comparision method, how can I do this with
> > python...
> 
> Yes, see the docs.  Just pass a comparison func to the sort method.

Or, better, pass a key-extraction function, that's much handier and
faster (it automates the "decorate-sort-undecorate", DSU, idiom).


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

Reply via email to