2007/9/4, Greg Ewing <[EMAIL PROTECTED]>: > I think its main use is as a source of functions for passing > to map(). Unless I'm mistaken, that's still going to be faster
Or to sort: >>> import operator >>> l = [(1, 3), (2, 2)] >>> sorted(l, key=operator.itemgetter(1)) [(2, 2), (1, 3)] >>> Regards, -- . Facundo Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com