[Stackless] threading.local analogue to tasklets

Richard Tew richard.m.tew at gmail.com
Thu Jun 21 09:34:50 CEST 2007


On 6/20/07, Arnar Birgisson <arnarbi at gmail.com> wrote:
> Is there something out there analogous to threading.local but for
> tasklets instead of threads?
>
> I meant to port this [1] simple implementation but that means I would
> have to assign properties to stackless.tasklet objects - which isn't
> possible.

I presume you mean attributes rather than properties.

To prematurely dig an old Slashdot meme from its grave:

 1. Create your own tasklet subclass.
 2. Instance tasklets from it.
 3. Set attributes on those instances.
 4. ?
 5. Profit!

Cheers,
Richard.

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list