Hi,

How come that the following code doesn't have a memory leak, even though we
have a circular reference (t -> t.tempval -> t)?

import gc
import stackless
gc.disable()
while True:
   t = stackless.tasklet(stackless.schedule)()
   stackless.schedule()
   assert t.tempval is t

Thanks,

Péter
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to