This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Devin Jeanpierre, rhettinger, serhiy.storchaka
Date 2015-01-09.08:07:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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".
Date User Action Args
2015-01-09 08:07:29serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, Devin Jeanpierre
2015-01-09 08:07:29serhiy.storchakasetmessageid: <>
2015-01-09 08:07:29serhiy.storchakalinkissue23204 messages
2015-01-09 08:07:28serhiy.storchakacreate