request help with Pipe class in

Marc 'BlackJack' Rintsch bj_666 at
Wed May 3 08:01:12 CEST 2006

In <pan.2006. at>, Steve R. Hastings wrote:

> What is the friendliest and most Pythonic way to write a Pipe class for
> iterwrap?

Maybe one with less "magic" syntax.  What about using a function that
takes the iterators and an iterable and returns an iterator of the chained

  new_list = pipe(grep('larch'), grep('parrot', 'v')), list)(my_list)

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list