[Antoon Pardon] > I don't see why the start index can't be accessible through > a method or function just like the length of a list is now. > > My favourite would be a range method so we would have > the following idiom: > > for i in lst.range(): > do something with lst[i]
After going to all that trouble, you might as well also get the value at that position: for i, x in enumerate(lst): do something with lst[i] also known as x Raymond Hettinger -- http://mail.python.org/mailman/listinfo/python-list