Message233761
> The iteration usually has linear complexity
The iteration abstract method depends on indexing as well:
def __iter__(self):
i = 0
try:
while True:
v = self[i]
yield v
i += 1
except IndexError:
return |
|
Date |
User |
Action |
Args |
2015-01-09 15:58:12 | rhettinger | set | recipients:
+ rhettinger, Devin Jeanpierre, serhiy.storchaka, josh.r |
2015-01-09 15:58:12 | rhettinger | set | messageid: <1420819092.54.0.22214818917.issue23086@psf.upfronthosting.co.za> |
2015-01-09 15:58:12 | rhettinger | link | issue23086 messages |
2015-01-09 15:58:12 | rhettinger | create | |
|