Serhiy Storchaka added the comment:

This is because list.index() has start and stop parameters, and L.index(x) is 
equivalent to L.index(x, 0, len(L)). In list.count() and list.remove() the 
limit is dynamic during iteration, but in list.index() it is specified by 
arguments before iterating. It is possible to make the limit static in 
list.count() and list.remove() or to make it floating if stop is absent or 
negative in list.index(), but this will complicate and slow down the code 
without good reason. I suggest to close this issue as "wont fix".

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23204>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to