Vedran Čačić added the comment:

Yes, I agree these are useless _if you know you're dealing with range_. 
However, if you have a Sequence, it would be very useful not to have range be a 
special case.

Of course, one solution is to have a default .index implementation in the 
Sequence ABC itself, but still I'd argue that range can implement the 3-arg 
.index much better than generic Sequence.


Python tracker <>
Python-bugs-list mailing list

Reply via email to