Message233635
Try something like this:
if start < 0:
start += len(self)
if stop is None:
stop = len(self)
elif stop < 0:
stop += len(self)
for i in range(max(start, 0), min(stop, len(self))):
if self[i] == value:
return i
raise ValueError |
|
Date |
User |
Action |
Args |
2015-01-08 09:46:16 | rhettinger | set | recipients:
+ rhettinger, Devin Jeanpierre |
2015-01-08 09:46:16 | rhettinger | set | messageid: <1420710376.6.0.253864482575.issue23086@psf.upfronthosting.co.za> |
2015-01-08 09:46:16 | rhettinger | link | issue23086 messages |
2015-01-08 09:46:16 | rhettinger | create | |
|