Marc 'BlackJack' Rintsch wrote:
Indeed. Would it be a sensible proposal that sequence slices should return an iterator instead of a list?

I don't think so as that would break tons of code that relies on the
current behavior.  Take a look at `itertools.islice()` if you want/need
an iterator.
A pity, imvho. Though I can live with islice() even if it is not as powerful as the [:] notation.

RB
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to