Message276946
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. |
|
Date |
User |
Action |
Args |
2016-09-19 05:15:54 | veky | set | recipients:
+ veky, rhettinger, Devin Jeanpierre, docs@python, serhiy.storchaka |
2016-09-19 05:15:54 | veky | set | messageid: <1474262154.0.0.196922495739.issue28197@psf.upfronthosting.co.za> |
2016-09-19 05:15:53 | veky | link | issue28197 messages |
2016-09-19 05:15:53 | veky | create | |
|