[Stackless] You cannot __reduce__ the tasklet ...

Arman Bostani arman at twinsun.com
Wed Jun 2 19:43:32 CEST 2004

Christian Tismer wrote:

> This function keeps an explicit reference to a tasklet which is
> involved in the later pickling. 

ahhh.  Silly mistake on my part.

> def capture():
>     last = getcurrent()
>     tasklet(get_ct)(last).run()
> Aside from that, I'm really not so happy with the solution to
> "forbid pickling of current", but I haven't found a reasonable
> alternative, yet. maybe allowing the pickle, but making it
> non-executable?

Another dumb question: why do you want to forbid execution of pickled 
"current" tasklets?  What's special about them?


Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list