[Stackless] weak reference on tempval?
Péter Szabó
ptspts+stackless at gmail.com
Wed May 5 21:05:20 CEST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100505/18ec2bd2/attachment.html>
More information about the Stackless
mailing list