pickling generators

Terry Reedy tjreedy at udel.edu
Sat Mar 22 22:59:28 CET 2003


"Paul Boehm" <paul at soniq.net> wrote in message
news:mailman.1048341517.7261.python-list at python.org...
> hi,
>
> we're developing a python based adventure game engine for a
> fangame effort, and we'd like to use generator based lightweight
threads,
> to let each of our objects be scripted mostly independently of each
other,
> without all of the hassles of strictly event oriented coding.
>
> our problem, however, is that we can't properly do savegames with
this design,
> as generator instances are not pickle- and unpickleable.

Have you looked at Stackless?  Don't know if tasklets can be pickled.

tjr






More information about the Python-list mailing list