[Stackless] Tasklet Slot Inheritance

Edward Faulkner ef at alum.mit.edu
Wed May 9 22:42:53 CEST 2007

I've noticed a weird behavior when I inherit from tasklet.  If my
class doesn't define __slots__, I can define and use extra member
variables as expected, and they remain valid for the life of the

But if I define __slots__ to limit the possible member variables, they
get deleted when the tasklet exits, even though I still have a
reference to it.

The attached short program demonstrates the difference.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.py
Type: text/x-python
Size: 389 bytes
Desc: not available
URL: <http://www.stackless.com/pipermail/stackless/attachments/20070509/e62c07f6/attachment.py>
-------------- next part --------------
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list