Shitiz Bansal wrote:

In the code you have shown, I don't see any need for
the queue. Just create the thread and start it. I don't think you have to keep a reference to it.
I'm not sure, but I think the thread will be garbage collected when it completes. (Can anyone
else confirm this?)


This does make sense,but how can we confirm that the
instance is not garbage collected before it ends?is
this the default behyaviour?

I just asked on comp.lang.python, we'll see what the experts say.

Kent

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to