[Stackless] Tasklet Slot Inheritance

Kristján Valur Jónsson kristjan at ccpgames.com
Sun May 20 19:16:12 CEST 2007


> -----Original Message-----
> From: stackless-bounces at stackless.com [mailto:stackless-
> bounces at stackless.com] On Behalf Of Richard Tew
> When a tasklet is killed, it has its references cleared through the
> tp_clear method.  This is part of the Python type implementation and
> clears various references in order to prevent or break reference
> cycles.  Including, as observed here, the slots.

tp_clear() is supposed to be called by the garbage collector when it so chooses.  It is not usually something that should be manually invoked.  I am curious as to why this was added.   There must have been a good reason, since this is highly unorthodox.  Maybe Christian can recall?

Kristjan

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



More information about the Stackless mailing list