iterators and views of lists

Francesco Bochicchio bieffe62 at gmail.com
Wed Dec 16 12:44:47 EST 2009


On Dec 16, 1:58 pm, Anh Hai Trinh <anh.hai.tr... at gmail.com> wrote:

>
> You might be interested in this library <http://pypi.python.org/pypi/
> stream>.
>
> You can easily create arbitrary "slice", for example
>
>   i = mylist >> takei(primes())
>
> will return an iterator over the items of mylist with a prime number
> index, given that primes() return an iterator over prime numbers.
>


Nice :-)

I was starting to experiment data flow programming with python myself,
although I'm just playing with it..
I find the idea of data flow programming fascinatin, and wonder if it
can be considered a general-purpose program paradigm.

Ciao
-----
FB



More information about the Python-list mailing list