A gnarly little python loop

Roy Smith roy at panix.com
Sun Nov 11 20:23:46 CET 2012


In article <mailman.3562.1352658857.27098.python-list at python.org>,
 Peter Otten <__peter__ at web.de> wrote:
 
> deque(
>     imap(
>         process,
>         chain.from_iterable(
>             takewhile(bool, imap(partial(api.GetSearch, term), count(1))))),
>     maxlen=0)
> 
> ;)

If I wanted STL, I would still be writing C++ :-)


More information about the Python-list mailing list