Message233725
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:29 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, Devin Jeanpierre |
2015-01-09 08:07:29 | serhiy.storchaka | set | messageid: <1420790849.07.0.797207972556.issue23204@psf.upfronthosting.co.za> |
2015-01-09 08:07:29 | serhiy.storchaka | link | issue23204 messages |
2015-01-09 08:07:28 | serhiy.storchaka | create | |
|