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/2004-June/045546.html below:

[Python-Dev] Re: Candidate Itertools

[Python-Dev] Re: Candidate Itertools [Python-Dev] Re: Candidate ItertoolsDavid Abrahams dave at boost-consulting.com
Thu Jun 24 07:36:05 EDT 2004
Aahz <aahz at pythoncraft.com> writes:

>> def pairswap(iterable):
>>     return ((b,a) for a,b in iterable)
>
> -1 -- too trivial.

Yeah, shouldn't any sequence-returning functions in itertools really
be returning an iterator adaptor?  After all, what if iterable is
reading from a file?

What we need is a lazy views library.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com


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