[Stackless] Pickling example using Sieve of Eratosthenes

Andrew Dalke dalke at dalkescientific.com
Mon Nov 2 01:25:05 CET 2009

On Nov 2, 2009, at 1:02 AM, Andrew Francis wrote:
>> but I suspect that might be to my now years out of date Stackless.
> Or you simply didn't do the following:
> $python pickled-sieve.py filename i.e., sieve.dat
> as per the comments? A case of RTFM :-)

There are no comments to that regard. The code I got says

    if len(sys.argv) == 2:
       fd = open('sieve.dat', 'r')
       image = pickle.load(fd)

and sys.argv is never used.

I did make sure that that code path was executed.

				dalke at dalkescientific.com

More information about the Stackless mailing list