Neal Becker wrote: > I see list has index member, but is there an index function that applies > to any sequence type? > > If not, shouldn't there be?
Looks like an oversight to me as well, yes. The only "difficult" implementation would be the one for xrange, because you can't search but must compute the result - but that should be trivial. Diez -- http://mail.python.org/mailman/listinfo/python-list