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/2008-May/079409.html below:

[Python-Dev] Adding start to enumerate()

[Python-Dev] Adding start to enumerate() [Python-Dev] Adding start to enumerate()Steven D'Aprano steve at pearwood.info
Wed May 14 00:11:23 CEST 2008
On Wed, 14 May 2008 05:01:20 am you wrote:
> >  While slices are wonderfully useful things, they aren't panaceas.
> >  They're not so useful with iterators, and they make a copy of the
> > data, which can be problematic if there's a *lot* of it.
>
> That's why we have itertools.islice().

I always forget itertools. Perhaps I should engrave it on my monitor as 
a reminder.

With iterators being such a fundamental part of Python these days, 
perhaps one day we'll see the functions in the itertools module become 
iterator methods, as happened with strings. But that's a discussion for 
another day.


-- 
Steven
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