What's do list comprehensions do that generator expressions don't?

jfj jfj at freemail.gr
Mon Apr 25 05:40:50 EDT 2005


I jfj wrote:

>
>   make_fractal_with_seed (x for x in range(100000000) if fibonacci_prime 
> (x))
> 

and this is stupendus.
At least range should be xrange.


jfj




More information about the Python-list mailing list