[Stackless] Giving names for tasklets

Christopher Armstrong radix at twistedmatrix.com
Tue Jun 27 17:07:06 CEST 2006

On 6/27/06, Juho Mäkinen <juho.makinen at gmail.com> wrote:
> Does anybody have any good idea how to give names for each individual tasklets?
> One way would be to create a wrapper function like
> def createTasklet(func, name, *args, **kw)
> where func is the function which is to be started as tasklet, name
> is the name of the tasklet and the rest are arguments passed
> to the func. The only question is how to implement this. Any ideas?

I did this once ages ago to help debugging. I think I ended up
subclassing tasklet to add the name attribute.

Christopher Armstrong
International Man of Twistery
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list