[Python-3000] Builtin iterator type

Steven Bethard steven.bethard at gmail.com
Tue Nov 14 18:16:59 CET 2006


On 11/14/06, George Sakkis <george.sakkis at gmail.com> wrote:
> Given the overly negative reaction to a base iterator type, I withdraw
> the part of my proposal that suggests this type as the base of all
> iterators. Instead I propose a builtin Iter (or even better iter, if
> there is no objection to change iter's current behavior) as an OO
> replacement of the (functional) itertools API.
[snip]
> for k,sub in (Iter(it1)[1:] + Iter(it2)[:5]).groupby(str.lower):
>     print k, list(sub)

Why don't you distribute this class as a third-party library for a
while, and see if people use it.  If it turns out that everyone loves
the functionality that it provides, then you can lobby for its
inclusion in the standard library.

Steve
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
        --- Bucky Katt, Get Fuzzy


More information about the Python-3000 mailing list