non-copy slices

tbourden at doc.ic.ac.uk tbourden at doc.ic.ac.uk
Wed Nov 18 10:34:59 EST 2009


Hi,

I was looking for a facility similar to slices in python library that would
avoid the implicit creation of a new list and copy of elements that is the
default behaviour. Instead I'd rather have a lazy iteratable object on the
original sequence. Well, in the end I wrote it myself but I was wondering if
I missed sth in the library. If I didn't is there a particular reason there
isn't sth like that? I find it hard to believe that all slice needs have
strictly copy semantics.

Cheers,
Themis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091118/1503cafd/attachment.html>


More information about the Python-list mailing list