[Tutor] How to delete a class instance

Kent Johnson kent37 at tds.net
Wed Mar 16 20:44:01 CET 2005

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.


More information about the Tutor mailing list