Chaining 501 generators breaks everything?
Andrey Fedorov
anfedorov at gmail.com
Fri Feb 19 14:47:50 EST 2010
I implemented a Sieve of
Eratosthenes<http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes>primes
algorithm using generators:
http://gist.github.com/309109
This code which chains together 500 generators works fine (~1/20th of a
second) on my laptop. The code which chaines 501 generators (s/498/499/ on
line 23) doesn't seem to finish.
Does anyone know the reason for this, or can anyone point me where to look
for a good explanation?
Cheers,
Andrey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100219/2969bc14/attachment.html>
More information about the Python-list
mailing list