On Tue, Apr 29, 2008 at 8:22 PM, Alexander Belopolsky <[EMAIL PROTECTED]> wrote: > On Tue, Apr 29, 2008 at 10:36 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > .. > > There are good reasons for having range() return an Iterable and not > > an Iterator; > > What would you say to an idea of exposing rangeiter in itertools - say > itertools.irange(..) function that returns an iterator?
You're kidding right? If you *want* the iterator, what's wrong with iter(range(N))? It's even less characters than itertools.irange(N). :-) -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com