On 11 July 2013 17:21, Russel Walker <russ.po...@gmail.com> wrote:
> To confess, this is the second time I've made the mistake of trying to 
> implement generator like functionality of a builtin when there already is on 
> in itertools. Need to start studying that module abit more I think. I'm 
> looking at the docs now and I see there are actually a couple of 
> isomethings().

Your xslice (or mine) would still be better than islice when the step
size is large; islice has to iterate over all the skipped elements
which could be wasteful if the input is indexable. Also islice doesn't
support negative values for start, stop or step which xslice does.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to