iterators and views of lists

Lie Ryan lie.1296 at gmail.com
Sat Dec 19 01:57:42 EST 2009


On 12/17/2009 4:44 AM, Francesco Bochicchio wrote:
> 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.

It is actually. http://en.wikipedia.org/wiki/Pipeline_programming
http://en.wikipedia.org/wiki/Flow-based_programming



More information about the Python-list mailing list