Neal Becker <[EMAIL PROTECTED]> writes: > What's a good/fast way to find the index of the minimum element of a > sequence? (I'm fairly sure sorting the sequence is not the fastest > approach)
Python 2.5 (untested): from operator import itemgetter minindex = min(enumerate(seq), key=itemgetter(1))[1] -- http://mail.python.org/mailman/listinfo/python-list