[Stackless] You cannot __reduce__ the tasklet ...

Bob Ippolito bob at redivi.com
Wed Jun 2 19:51:07 CEST 2004


On Jun 2, 2004, at 1:43 PM, Arman Bostani wrote:

> Christian Tismer wrote:
>
>> 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?

because the current tasklet is the one actually doing the pickling.. 
you would end up pickling a tasklet that's somewhere in the middle of 
creating a pickle file...

-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
URL: <http://www.stackless.com/pipermail/stackless/attachments/20040602/fc4599c9/attachment.bin>
-------------- next part --------------
_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless


More information about the Stackless mailing list