pickling generators

Paul Boehm paul at soniq.net
Sat Mar 22 11:54:50 EST 2003


On Sat, Mar 22, 2003 at 05:40:33PM +0100, Gerrit Holl wrote:
> I have written some code to do this. It assumes:
> 
>     * When the same arguments are passed to the generators function, it
>       yields the same values,
>     * No value is yielded twice, or it is yielded forever,
>     * Requires Python 2.3.

this is not suitable for our engine, we need to HARD restore state,
not try to recreate it.

thanks for sharing your code and ideas though!

  paul





More information about the Python-list mailing list