Message233725
| 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 |
<1420790849.07.0.797207972556.issue23204@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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". |
|
History
|
|---|
| 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 |
|