Ahhh yes! that's exactly it. Thanks for pointing out!<div><br clear="all">Themis<br>
<br><br><div class="gmail_quote">On Wed, Nov 18, 2009 at 3:44 PM, Tim Golden <span dir="ltr"><<a href="mailto:mail@timgolden.me.uk">mail@timgolden.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5"><a href="mailto:tbourden@doc.ic.ac.uk">tbourden@doc.ic.ac.uk</a> wrote:<br>
> Hi,<br>
><br>
> I was looking for a facility similar to slices in python library that would<br>
> avoid the implicit creation of a new list and copy of elements that is the<br>
> default behaviour. Instead I'd rather have a lazy iteratable object on the<br>
> original sequence. Well, in the end I wrote it myself but I was wondering if<br>
> I missed sth in the library. If I didn't is there a particular reason there<br>
> isn't sth like that? I find it hard to believe that all slice needs have<br>
> strictly copy semantics.<br>
<br>
</div></div>I suspect that itertools is your friend, specifically itertools.islice<br>
<br>
TJG<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br></div>