A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-January/051285.html below:

[Python-Dev] Re: Allowing slicing of iterators

[Python-Dev] Re: Allowing slicing of iterators [Python-Dev] Re: Allowing slicing of iteratorsFredrik Lundh fredrik at pythonware.com
Tue Jan 25 18:39:54 CET 2005
Guido van Rossum wrote:

>> As a trivial example, here's how to skip the head of a zero-numbered list:
>>
>>    for i, item in enumerate("ABCDEF")[1:]:
>>      print i, item
>>
>> Is this idea a non-starter, or should I spend my holiday on Wednesday finishing
>> it off and writing the documentation and tests for it?
>
> Since we already have the islice iterator, what's the point?

readability?  I don't have to import seqtools to work with traditional
sequences, so why should I have to import itertools to be able to use
the goodies in there?  better leave that to the compiler.

</F> 



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4